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