java.lang.IllegalStateException:org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration上的错误处理条件 在org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64)处 在org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) 在org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader $ TrackedConditionEvaluator.shouldSkip(ConfigurationClassBeanDefinitionReader.java:441) 在org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:129)处 在org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:118)处 在org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:328)处 在org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233)处 在org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:271) 在org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:91)处 在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:692) 在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:530) 在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) 在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) 在org.springframework.boot.SpringApplication.run(SpringApplication.java:307) 在com.einfochips.demo.TestApp.main(TestApp.java:63) 引起原因:java.lang.IllegalStateException:无法从ClassLoader [sun.misc.Launcher$AppClassLoader@659e0bfd]内省Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]