Browse Source

Mark Spring web config classes as proxyBeanMethods=false

Closes gh-23004
pull/23049/head
Brian Clozel 6 years ago
parent
commit
4b8ce04bdc
  1. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/config/DelegatingWebFluxConfiguration.java
  2. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.java

2
spring-webflux/src/main/java/org/springframework/web/reactive/config/DelegatingWebFluxConfiguration.java

@ -37,7 +37,7 @@ import org.springframework.web.reactive.result.method.annotation.ArgumentResolve @@ -37,7 +37,7 @@ import org.springframework.web.reactive.result.method.annotation.ArgumentResolve
* @author Brian Clozel
* @since 5.0
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class DelegatingWebFluxConfiguration extends WebFluxConfigurationSupport {
private final WebFluxConfigurerComposite configurers = new WebFluxConfigurerComposite();

2
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.java

@ -39,7 +39,7 @@ import org.springframework.web.servlet.HandlerExceptionResolver; @@ -39,7 +39,7 @@ import org.springframework.web.servlet.HandlerExceptionResolver;
* @author Rossen Stoyanchev
* @since 3.1
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class DelegatingWebMvcConfiguration extends WebMvcConfigurationSupport {
private final WebMvcConfigurerComposite configurers = new WebMvcConfigurerComposite();

Loading…
Cancel
Save