Use @Configuration(proxyBeanMethods = false)

This commit is contained in:
如梦技术 2021-05-18 17:02:22 +08:00
parent cc1253fa74
commit cd449d2f37
6 changed files with 6 additions and 8 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);
} }

View File

@ -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")

View File

@ -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;

View File

@ -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);