mirror of https://gitee.com/maxjhandsome/pig
✨ Use @Configuration(proxyBeanMethods = false)
This commit is contained in:
parent
cc1253fa74
commit
cd449d2f37
|
@ -47,9 +47,9 @@ import java.util.Map;
|
||||||
* @author lengleng
|
* @author lengleng
|
||||||
* @date 2019/2/1 认证服务器配置
|
* @date 2019/2/1 认证服务器配置
|
||||||
*/
|
*/
|
||||||
@Configuration
|
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@EnableAuthorizationServer
|
@EnableAuthorizationServer
|
||||||
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
|
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
|
||||||
|
|
||||||
private final DataSource dataSource;
|
private final DataSource dataSource;
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.springframework.security.web.authentication.logout.LogoutSuccessHandl
|
||||||
*/
|
*/
|
||||||
@Primary
|
@Primary
|
||||||
@Order(90)
|
@Order(90)
|
||||||
@Configuration
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -35,10 +35,8 @@ import org.springframework.scheduling.annotation.EnableAsync;
|
||||||
@Configuration(proxyBeanMethods = false)
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class LogAutoConfiguration {
|
public class LogAutoConfiguration {
|
||||||
|
|
||||||
private final RemoteLogService remoteLogService;
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public SysLogListener sysLogListener() {
|
public SysLogListener sysLogListener(RemoteLogService remoteLogService) {
|
||||||
return new SysLogListener(remoteLogService);
|
return new SysLogListener(remoteLogService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import reactor.core.publisher.Mono;
|
||||||
* @author lengleng
|
* @author lengleng
|
||||||
* @date 2019/2/1 路由限流配置
|
* @date 2019/2/1 路由限流配置
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class RateLimiterConfiguration {
|
public class RateLimiterConfiguration {
|
||||||
|
|
||||||
@Bean(value = "remoteAddrKeyResolver")
|
@Bean(value = "remoteAddrKeyResolver")
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.security.web.authentication.SavedRequestAwareAuthenti
|
||||||
* @author lishangbu
|
* @author lishangbu
|
||||||
* @date 2019/2/1
|
* @date 2019/2/1
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
private final String adminContextPath;
|
private final String adminContextPath;
|
||||||
|
|
|
@ -42,7 +42,7 @@ import javax.servlet.Filter;
|
||||||
/**
|
/**
|
||||||
* @author leyou
|
* @author leyou
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration(proxyBeanMethods = false)
|
||||||
public class WebConfig implements WebMvcConfigurer {
|
public class WebConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
private final Logger logger = LoggerFactory.getLogger(WebConfig.class);
|
private final Logger logger = LoggerFactory.getLogger(WebConfig.class);
|
||||||
|
|
Loading…
Reference in New Issue