Use a String when referencing a class with @ConditionalOnMissingClass

Using a Class reference can cause reflection problems at runtime (see
gh-1065).

Closes gh-2674
pull/2707/merge
Andy Wilkinson 10 years ago
parent c153c4e517
commit 8b20403c41

@ -158,7 +158,7 @@ public class EndpointWebMvcChildContextConfiguration {
* configures the security filter.
*/
@Configuration
@ConditionalOnMissingClass(WebSecurityConfigurerAdapter.class)
@ConditionalOnMissingClass(name = "org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter")
protected static class EndpointHandlerMappingConfiguration {
@Autowired(required = false)

Loading…
Cancel
Save