You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the @ManagementContextConfiguration classes are explicitly marked as proxyBeanMethods = false and some are not (e.g. WebMvcEndpointChildContextConfiguration). It seems like Spring doesn't recognize this in a meta-annotation, so it's probably a bug not to declare it explicitly:
I think this should be treated as a bug as the current arrangement doesn't really make sense. We've got proxyBeanMethods=false on a @Configuration meta-annotation, but we also have a proxyBeanMethods attribute on @ManagementContextConfiguration that's an alias for the attribute on @Configuration. The attribute on the meta-annotation should be removed in favour of the aliased attribute.
wilkinsona
changed the title
Some @ManagementContextConfiguration are not marked as proxyBeanMethods = false
@ManagementContextConfiguration is meta-annotated with @Configuration(proxyBeanMethods=false) which does not disable proxying
Sep 15, 2020
Some of the
@ManagementContextConfiguration
classes are explicitly marked asproxyBeanMethods = false
and some are not (e.g.WebMvcEndpointChildContextConfiguration
). It seems like Spring doesn't recognize this in a meta-annotation, so it's probably a bug not to declare it explicitly:prints
The code path in Spring is the second one (I think), via
ConfigurationClassUtils
.The text was updated successfully, but these errors were encountered: