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
* @date 2019/2/1 认证服务器配置
*/
@Configuration
@RequiredArgsConstructor
@EnableAuthorizationServer
@Configuration(proxyBeanMethods = false)
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
private final DataSource dataSource;

View File

@ -38,7 +38,7 @@ import org.springframework.security.web.authentication.logout.LogoutSuccessHandl
*/
@Primary
@Order(90)
@Configuration
@Configuration(proxyBeanMethods = false)
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
@Override

View File

@ -35,10 +35,8 @@ import org.springframework.scheduling.annotation.EnableAsync;
@Configuration(proxyBeanMethods = false)
public class LogAutoConfiguration {
private final RemoteLogService remoteLogService;
@Bean
public SysLogListener sysLogListener() {
public SysLogListener sysLogListener(RemoteLogService remoteLogService) {
return new SysLogListener(remoteLogService);
}

View File

@ -25,7 +25,7 @@ import reactor.core.publisher.Mono;
* @author lengleng
* @date 2019/2/1 路由限流配置
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class RateLimiterConfiguration {
@Bean(value = "remoteAddrKeyResolver")

View File

@ -29,7 +29,7 @@ import org.springframework.security.web.authentication.SavedRequestAwareAuthenti
* @author lishangbu
* @date 2019/2/1
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
private final String adminContextPath;

View File

@ -42,7 +42,7 @@ import javax.servlet.Filter;
/**
* @author leyou
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class WebConfig implements WebMvcConfigurer {
private final Logger logger = LoggerFactory.getLogger(WebConfig.class);