SpringBoot启动报错:nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.

完整的报错信息:

org.springframework.beans.factory.BeanDefinitionStoreException: 
Failed to read candidate component class: file 
[D:\ideaWorkProject\rabbitmqtest\target\classes\com\sinosoft\rabbitmqtest\Enum\IErrorCode.class]; 
nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.sinosoft.rabbitmqtest.config.CrosConfig] 

from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

解决方案:
在你的pom文件删除 注释掉scope

  <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
      <!--      <scope>provided</scope>-->
        </dependency>

你可能感兴趣的:(java,java,spring,boot)