Commit fdccd9c0 by xieshaohua

jdk17升级

parent f2d7c69d
......@@ -7,19 +7,34 @@
<artifactId>loginService</artifactId>
<version>3.0.1</version>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath/>
<groupId>com.keymobile</groupId>
<artifactId>parent</artifactId>
<version>product-v1-1.0.0-beta1</version>
</parent>
<!-- <parent>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
<!-- <version>2.0.4.RELEASE</version>-->
<!-- <relativePath/>-->
<!-- </parent>-->
<!-- <properties>-->
<!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>-->
<!-- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>-->
<!-- <java.version>1.8</java.version>-->
<!-- <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>-->
<!-- </properties>-->
<properties>
<auth.version>product-v1-1.0.0-beta1</auth.version>
<config.version>product-v1-1.0.0-beta1</config.version>
<crypto.version>product-v1-1.0.0-beta1</crypto.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
<openapi.version>2.6.0</openapi.version>
</properties>
<dependencies>
......@@ -53,15 +68,21 @@
<version>3.7</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.2.2</version>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${openapi.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger2</artifactId>-->
<!-- <version>2.5.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<!-- <version>2.2.2</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
......@@ -107,7 +128,6 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
......@@ -144,18 +164,18 @@
<dependency>
<groupId>com.keymobile.auth</groupId>
<artifactId>security</artifactId>
<version>3.0.9-release</version>
<version>${auth.version}</version>
</dependency>
<dependency>
<groupId>com.keymobile</groupId>
<artifactId>config</artifactId>
<version>1.1.5-release</version>
<version>${config.version}</version>
</dependency>
<dependency>
<groupId>com.keymobile</groupId>
<artifactId>crypto</artifactId>
<version>1.1.5-release</version>
<version>${crypto.version}</version>
</dependency>
<dependency>
......
......@@ -30,10 +30,10 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.util.UriComponentsBuilder;
import javax.net.ssl.SSLContext;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
......@@ -203,6 +203,8 @@ public class LoginManagement {
@RequestMapping(value = "/test", method = {RequestMethod.POST, RequestMethod.GET})
public String test(HttpServletRequest request) {
UserDetails userDetails = customizedUserDetailService.loadUserByUsername("root");
Cookie[] cookies = request.getCookies();
if (cookies != null) {
log.info("---------cookies------------");
......
......@@ -9,8 +9,8 @@ import com.keymobile.login.persistence.model.SsoOrganMcclAbstract;
import com.keymobile.login.persistence.model.SsoUserAbstract;
import com.keymobile.login.persistence.model.SsoUserMcclAbstract;
import com.keymobile.login.util.HttpsUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -23,8 +23,8 @@ import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;
import javax.persistence.criteria.Predicate;
import javax.servlet.http.HttpServletRequest;
import jakarta.persistence.criteria.Predicate;
import jakarta.servlet.http.HttpServletRequest;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
......@@ -40,7 +40,7 @@ import java.util.concurrent.TimeUnit;
*/
@RestController
@RequestMapping(value = "/peopleCenter")
@Api(value = "用户中心", tags = {"用户中心"})
@Tag(name = "用户中心")
public class PeopleCenterApi {
private static final Logger log = LoggerFactory.getLogger(LoginManagement.class);
......@@ -128,8 +128,8 @@ public class PeopleCenterApi {
@RequestParam(required = false) String organizationid,
@RequestParam(required = false, defaultValue = "true") Boolean isalllevel,
@RequestParam(required = false) String organizationname,
@ApiParam("排序字段") @RequestParam(required = false) String sortingType,
@ApiParam("排序规则 ASC DESC") @RequestParam(required = false) String sortingRule,
@Parameter(name = "排序字段") @RequestParam(required = false) String sortingType,
@Parameter(name = "排序规则 ASC DESC") @RequestParam(required = false) String sortingRule,
@RequestParam(required = false, defaultValue = "1") Integer pageNo,
@RequestParam(required = false, defaultValue = "10") Integer pageSize) {
......@@ -159,8 +159,8 @@ public class PeopleCenterApi {
@RequestParam(required = false) String organizationid,
@RequestParam(required = false, defaultValue = "true") Boolean isalllevel,
@RequestParam(required = false) String organizationname,
@ApiParam("排序字段") @RequestParam(required = false) String sortingType,
@ApiParam("排序规则 ASC DESC") @RequestParam(required = false) String sortingRule) {
@Parameter(name = "排序字段") @RequestParam(required = false) String sortingType,
@Parameter(name = "排序规则 ASC DESC") @RequestParam(required = false) String sortingRule) {
String sortField = "";
if (StringUtils.isNotBlank(sortingType)) {
......@@ -188,8 +188,8 @@ public class PeopleCenterApi {
@RequestParam(required = false) String organizationid,
@RequestParam(required = false, defaultValue = "true") Boolean isalllevel,
@RequestParam(required = false) String organizationname,
@ApiParam("排序字段") @RequestParam(required = false) String sortingType,
@ApiParam("排序规则 ASC DESC") @RequestParam(required = false) String sortingRule) {
@Parameter(name = "排序字段") @RequestParam(required = false) String sortingType,
@Parameter(name = "排序规则 ASC DESC") @RequestParam(required = false) String sortingRule) {
String sortField = "";
if (StringUtils.isNotBlank(sortingType)) {
......
package com.keymobile.login.conf;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
@Configuration
@Profile("!prod")
public class OpenAPIConfig {
@Bean
public OpenAPI openAPI() {
Info info = new Info()
.title("标准管理 API文档")
.version("1.0")
.description("标准管理 API文档");
return new OpenAPI().info(info);
}
}
......@@ -4,9 +4,9 @@ import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
......
......@@ -4,9 +4,9 @@ import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
......
......@@ -6,9 +6,9 @@ import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
......
package com.keymobile.login.conf;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
public class RESTLogoutSuccessHandler implements LogoutSuccessHandler {
@Override
public void onLogoutSuccess(HttpServletRequest request,
HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException{
response.setStatus(HttpStatus.OK.value());
response.getWriter().flush();
}
......
package com.keymobile.login.conf;
import com.keymobile.auth.common.security.CustomizedUserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
@Configuration
@ComponentScan("com.keymobile.auth.common.security")
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private CustomizedUserDetailService customUserDetailService;
@Autowired
private RESTAuthenticationEntryPoint authenticationEntryPoint;
@Autowired
private RESTAuthenticationFailureHandler authenticationFailureHandler;
@Autowired
private RESTAuthenticationSuccessHandler authenticationSuccessHandler;
@Autowired
private RESTLogoutSuccessHandler logoutSuccessHandler;
@Autowired
public void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(customUserDetailService).passwordEncoder(NoOpPasswordEncoder.getInstance());
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().permitAll();
http.csrf().disable();
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
http.formLogin().successHandler(authenticationSuccessHandler);
http.formLogin().failureHandler(authenticationFailureHandler);
http.formLogin().loginPage("/login");
http.formLogin().loginProcessingUrl("/signin");
http.logout().logoutUrl("/signout");
http.logout().logoutSuccessHandler(logoutSuccessHandler);
}
}
//package com.keymobile.login.conf;
//
//import com.keymobile.auth.common.security.CustomizedUserDetailService;
//import org.springframework.beans.factory.annotation.Autowired;
//
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//import org.springframework.security.crypto.password.NoOpPasswordEncoder;
//
//
//@Configuration
//@ComponentScan("com.keymobile.auth.common.security")
//public class SecurityConfig extends WebSecurityConfigurerAdapter {
//
// @Autowired
// private CustomizedUserDetailService customUserDetailService;
// @Autowired
// private RESTAuthenticationEntryPoint authenticationEntryPoint;
// @Autowired
// private RESTAuthenticationFailureHandler authenticationFailureHandler;
// @Autowired
// private RESTAuthenticationSuccessHandler authenticationSuccessHandler;
// @Autowired
// private RESTLogoutSuccessHandler logoutSuccessHandler;
//
// @Autowired
// public void configure(AuthenticationManagerBuilder auth) throws Exception {
// auth.userDetailsService(customUserDetailService).passwordEncoder(NoOpPasswordEncoder.getInstance());
// }
//
// @Override
// protected void configure(HttpSecurity http) throws Exception {
// http.authorizeRequests().anyRequest().permitAll();
// http.csrf().disable();
// http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
// http.formLogin().successHandler(authenticationSuccessHandler);
// http.formLogin().failureHandler(authenticationFailureHandler);
// http.formLogin().loginPage("/login");
// http.formLogin().loginProcessingUrl("/signin");
// http.logout().logoutUrl("/signout");
// http.logout().logoutSuccessHandler(logoutSuccessHandler);
// }
//
//}
package com.keymobile.login.conf;
import com.keymobile.auth.common.security.CustomizedUserDetailService;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.provisioning.UserDetailsManager;
import org.springframework.security.web.SecurityFilterChain;
import javax.sql.DataSource;
/**
* SecurityConfig.
* @author mahx
* @version 1.0
* @date 2019/12/27 16:55
*/
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
@ComponentScan("com.keymobile.auth.common.security")
public class SecurityNewConfig {
@Value("${security.permit}")
private boolean permit;
@Autowired
private CustomizedUserDetailService customUserDetailService;
@Autowired
private RESTAuthenticationEntryPoint authenticationEntryPoint;
@Autowired
private RESTAuthenticationFailureHandler authenticationFailureHandler;
@Autowired
private RESTAuthenticationSuccessHandler authenticationSuccessHandler;
@Autowired
private RESTLogoutSuccessHandler logoutSuccessHandler;
@Bean
public UserDetailsManager users(DataSource dataSource) {
return new CustomizedUserDetailService(dataSource);
}
@Bean
public PasswordEncoder passwordEncoder() {
return NoOpPasswordEncoder.getInstance();
}
@Bean
protected SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
if (permit) {
http.httpBasic().and().authorizeHttpRequests().anyRequest().permitAll();
} else {
http.httpBasic().and().authorizeHttpRequests().requestMatchers("/actuator/**").permitAll()
.and().authorizeHttpRequests().anyRequest().authenticated();
}
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
http.formLogin().successHandler(authenticationSuccessHandler);
http.formLogin().failureHandler(authenticationFailureHandler);
http.formLogin().loginPage("/login");
http.formLogin().loginProcessingUrl("/signin");
http.logout().logoutUrl("/signout");
http.logout().logoutSuccessHandler(logoutSuccessHandler);
http.csrf().disable();
return http.build();
}
class SHA1PasswordEncoder implements PasswordEncoder {
@Override
public String encode(CharSequence charSequence) {
return DigestUtils.sha1Hex(charSequence.toString());
}
@Override
public boolean matches(CharSequence charSequence, String s) {
return DigestUtils.sha1Hex(charSequence.toString()).equals(s);
}
}
}
package com.keymobile.login.conf;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
public class Swagger2Config {
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.keymobile.login.api"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("DATA MODEL RESTful APIs")
.description("Spring Boot Swagger2")
.termsOfServiceUrl("http://www.keymobile.com.cn/")
.contact("keymobile")
.version("1.0")
.build();
}
}
//package com.keymobile.login.conf;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//@Configuration
//@EnableSwagger2
//public class Swagger2Config {
//
// @Bean
// public Docket createRestApi() {
// return new Docket(DocumentationType.SWAGGER_2)
// .apiInfo(apiInfo())
// .select()
// .apis(RequestHandlerSelectors.basePackage("com.keymobile.login.api"))
// .paths(PathSelectors.any())
// .build();
// }
//
// private ApiInfo apiInfo() {
// return new ApiInfoBuilder()
// .title("DATA MODEL RESTful APIs")
// .description("Spring Boot Swagger2")
// .termsOfServiceUrl("http://www.keymobile.com.cn/")
// .contact("keymobile")
// .version("1.0")
// .build();
// }
//
//}
......@@ -3,7 +3,7 @@ package com.keymobile.login.persistence;
import com.keymobile.login.persistence.model.SsoOrganMcclAbstract;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
import jakarta.transaction.Transactional;
import java.util.List;
@Transactional
......
......@@ -4,7 +4,7 @@ import com.keymobile.login.persistence.model.SsoOrganAbstract;
import com.keymobile.login.persistence.model.SsoUserAbstract;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
import jakarta.transaction.Transactional;
import java.util.List;
@Transactional
......
......@@ -8,7 +8,7 @@ import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
import jakarta.transaction.Transactional;
import java.util.List;
@Transactional
......
......@@ -5,7 +5,7 @@ import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
import jakarta.transaction.Transactional;
import java.util.List;
@Transactional
......
package com.keymobile.login.persistence.model;
import javax.persistence.*;
import jakarta.persistence.*;
/**
* @author xiesh
......
package com.keymobile.login.persistence.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import java.util.ArrayList;
import java.util.List;
......
package com.keymobile.login.persistence.model;
import javax.persistence.*;
import jakarta.persistence.*;
@Entity
......
package com.keymobile.login.persistence.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import java.util.List;
......
package com.keymobile.login.service;
import com.keymobile.auth.common.security.CustomizedUserDetailService;
import org.springframework.stereotype.Service;
import javax.sql.DataSource;
@Service
public class CustomizedUserDetailServiceImpl extends CustomizedUserDetailService {
public CustomizedUserDetailServiceImpl(DataSource dataSource) {
super(dataSource);
}
}
......@@ -27,13 +27,12 @@ spring:
url: jdbc:mysql://10.126.158.214:22698/dgrcb?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
username: poc
password: Km@38497130
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
# show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
show-sql: true
ribbon:
ReadTimeout: 60000
ConnectTimeout: 60000
......@@ -69,6 +68,6 @@ Mcd:
peopleCenter:
sysSecret: 3522f512-6549-4b38-8d1d-03161d5f2148
sysId: 169623376
tokenUrl: http://mcd-biz-gateway-sit.mcdchina.net/token/getToken
userUrl: http://mcd-biz-gateway-sit.mcdchina.net/people-center/people-query/employee/list
organUrl: http://mcd-biz-gateway-sit.mcdchina.net/people-center/people-query/organization/page
tokenUrl: https://mcd-biz-gateway-sit.mcdchina.net/token/getToken
userUrl: https://mcd-biz-gateway-sit.mcdchina.net/people-center/people-query/employee/list
organUrl: https://mcd-biz-gateway-sit.mcdchina.net/people-center/people-query/organization/page
server:
port: 9764
eureka:
client:
registerWithEureka: true
region: default
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://10.126.158.215:8081/eureka/
enabled: false
spring:
session:
store-type: redis
redis:
namespace: dgrcb
redis:
host: 10.126.158.214
port: 6379
password: letmein
datasource:
continue-on-error: true
hikari:
maximum-pool-size: 5
initialization-mode: always
url: jdbc:mysql://10.126.158.214:22698/dgrcb?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
username: poc
password: Km@38497130
jpa:
hibernate:
ddl-auto: update
# show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
ribbon:
ReadTimeout: 60000
ConnectTimeout: 60000
OkToRetryOnAllOperations: true
MaxAutoRetries: 3
logging:
level:
# 设置Hibernate的日志级别
org.hibernate: ERROR
feign:
client:
config:
default:
connectTimeout: 60000
ReadTimeout: 60000
security:
authUser: root
authPwd: pwd
permit: true
allowRootLogin: true
Mcd:
sso:
url: https://boss.sit.mcd.com.cn/api/inner/boss-api/foundation/sso/authenticate
header: McD-BOSS;PC
redirectUrl: http://10.126.147.58/center-home/menu/index
deepSso:
url: https://boss.sit.mcd.com.cn/api/inner/boss-api/foundation/user/whoami
peopleCenter:
sysSecret: 3f9f4b81-c3b4-49e1-94a0-bb3dfbd9f732
sysId: 158937373
tokenUrl: https://mcd-biz-gateway.mcdchina.net/token/getToken
userUrl: https://mcd-biz-gateway.mcdchina.net/people-center/people-query/employee/list
organUrl: https://mcd-biz-gateway.mcdchina.net/people-center/people-query/organization/page
......@@ -2,7 +2,7 @@ spring:
application:
name: auth
profiles:
active: local
active: mcd
cloud:
config:
uri:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment