Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringB

 我在启动项目的时候遇到了这个问题,问题为没有Servlet容器

E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\bin\java.exe "-javaagent:C:\LiuTong\idea\IntelliJ IDEA 2023.2\lib\idea_rt.jar=55649:C:\LiuTong\idea\IntelliJ IDEA 2023.2\bin" -Dfile.encoding=UTF-8 -classpath E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\charsets.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\deploy.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\access-bridge-64.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\cldrdata.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\dnsns.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\jaccess.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\jfxrt.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\localedata.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\nashorn.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\sunec.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\sunjce_provider.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\sunmscapi.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\sunpkcs11.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\ext\zipfs.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\javaws.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\jce.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\jfr.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\jfxswt.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\jsse.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\management-agent.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\plugin.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\resources.jar;E:\LiuTong\jdk\jdk-1.8.0_291\jdk1.8.0_291\jre\lib\rt.jar;E:\LiuTong\idea-work\fxq\target\classes;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-web\2.1.1.RELEASE\spring-boot-starter-web-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter\2.1.1.RELEASE\spring-boot-starter-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-logging\2.1.1.RELEASE\spring-boot-starter-logging-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;E:\LiuTong\maven\fxq\antimoney\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-json\2.1.1.RELEASE\spring-boot-starter-json-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.7\jackson-datatype-jdk8-2.9.7.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.7\jackson-datatype-jsr310-2.9.7.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.7\jackson-module-parameter-names-2.9.7.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\hibernate\validator\hibernate-validator\6.0.13.Final\hibernate-validator-6.0.13.Final.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-web\5.1.3.RELEASE\spring-web-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-beans\5.1.3.RELEASE\spring-beans-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-webmvc\5.1.3.RELEASE\spring-webmvc-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-aop\5.1.3.RELEASE\spring-aop-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-context\5.1.3.RELEASE\spring-context-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-expression\5.1.3.RELEASE\spring-expression-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-devtools\2.1.1.RELEASE\spring-boot-devtools-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot\2.1.1.RELEASE\spring-boot-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.1.RELEASE\spring-boot-autoconfigure-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\mysql\mysql-connector-java\8.0.13\mysql-connector-java-8.0.13.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\projectlombok\lombok\1.18.4\lombok-1.18.4.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.1.1.RELEASE\spring-boot-starter-thymeleaf-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\thymeleaf\thymeleaf-spring5\3.0.11.RELEASE\thymeleaf-spring5-3.0.11.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\thymeleaf\thymeleaf\3.0.11.RELEASE\thymeleaf-3.0.11.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.2.RELEASE\thymeleaf-extras-java8time-3.0.2.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\net\bytebuddy\byte-buddy\1.9.5\byte-buddy-1.9.5.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-core\5.1.3.RELEASE\spring-core-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-jcl\5.1.3.RELEASE\spring-jcl-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.1\mybatis-spring-boot-starter-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.1\mybatis-spring-boot-autoconfigure-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\mybatis\mybatis\3.4.5\mybatis-3.4.5.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.1.RELEASE\spring-boot-starter-jdbc-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-jdbc\5.1.3.RELEASE\spring-jdbc-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-tx\5.1.3.RELEASE\spring-tx-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-swagger2\2.7.0\springfox-swagger2-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\swagger\swagger-annotations\1.5.13\swagger-annotations-1.5.13.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\swagger\swagger-models\1.5.13\swagger-models-1.5.13.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-spi\2.7.0\springfox-spi-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-core\2.7.0\springfox-core-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-schema\2.7.0\springfox-schema-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-swagger-common\2.7.0\springfox-swagger-common-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-spring-web\2.7.0\springfox-spring-web-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\reflections\reflections\0.9.11\reflections-0.9.11.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\javassist\javassist\3.21.0-GA\javassist-3.21.0-GA.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\google\guava\guava\18.0\guava-18.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\mapstruct\mapstruct\1.1.0.Final\mapstruct-1.1.0.Final.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\springfox\springfox-swagger-ui\2.7.0\springfox-swagger-ui-2.7.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\poi\poi\3.17\poi-3.17.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\poi\poi-ooxml\3.17\poi-ooxml-3.17.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\poi\poi-ooxml-schemas\3.17\poi-ooxml-schemas-3.17.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\core\jackson-databind\2.9.7\jackson-databind-2.9.7.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\fasterxml\jackson\core\jackson-core\2.9.7\jackson-core-2.9.7.jar;E:\LiuTong\maven\fxq\antimoney\repository\cn\com\sinosoft\message\1.0\message-1.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\oracle\ojdbc6\11.2.0.4.0-atlassian-hosted\ojdbc6-11.2.0.4.0-atlassian-hosted.jar;E:\LiuTong\maven\fxq\antimoney\repository\net\sourceforge\jexcelapi\jxl\2.6.12\jxl-2.6.12.jar;E:\LiuTong\maven\fxq\antimoney\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\pagehelper\pagehelper-spring-boot-starter\1.2.5\pagehelper-spring-boot-starter-1.2.5.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.2.5\pagehelper-spring-boot-autoconfigure-1.2.5.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\pagehelper\pagehelper\5.1.4\pagehelper-5.1.4.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\jsqlparser\jsqlparser\1.0\jsqlparser-1.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\alibaba\easyexcel\1.0.3\easyexcel-1.0.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-beanutils\commons-beanutils\1.9.2\commons-beanutils-1.9.2.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\commons\commons-compress\1.14\commons-compress-1.14.jar;E:\LiuTong\maven\fxq\antimoney\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\xml-apis\xml-apis\1.4.01\xml-apis-1.4.01.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\jdom\jdom\1.1.3\jdom-1.1.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.1.RELEASE\spring-boot-starter-actuator-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.1.RELEASE\spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-actuator\2.1.1.RELEASE\spring-boot-actuator-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\io\micrometer\micrometer-core\1.1.1\micrometer-core-1.1.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\de\codecentric\spring-boot-admin-starter-client\2.1.1\spring-boot-admin-starter-client-2.1.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\de\codecentric\spring-boot-admin-client\2.1.1\spring-boot-admin-client-2.1.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\jolokia\jolokia-core\1.6.0\jolokia-core-1.6.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\googlecode\json-simple\json-simple\1.1.1\json-simple-1.1.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;E:\LiuTong\maven\fxq\antimoney\repository\cn\afterturn\easypoi-base\3.0.3\easypoi-base-3.0.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\commons\commons-lang3\3.8.1\commons-lang3-3.8.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;E:\LiuTong\maven\fxq\antimoney\repository\cn\afterturn\easypoi-web\3.0.3\easypoi-web-3.0.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\cn\afterturn\easypoi-annotation\3.0.3\easypoi-annotation-3.0.3.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\shiro\shiro-core\1.3.1\shiro-core-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\shiro\shiro-web\1.3.1\shiro-web-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\shiro\shiro-spring\1.3.1\shiro-spring-1.3.1.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\shiro\shiro-ehcache\1.2.6\shiro-ehcache-1.2.6.jar;E:\LiuTong\maven\fxq\antimoney\repository\net\sf\ehcache\ehcache-core\2.5.0\ehcache-core-2.5.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\com\github\theborakompanioni\thymeleaf-extras-shiro\2.0.0\thymeleaf-extras-shiro-2.0.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\boot\spring-boot-starter-freemarker\2.1.1.RELEASE\spring-boot-starter-freemarker-2.1.1.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\springframework\spring-context-support\5.1.3.RELEASE\spring-context-support-5.1.3.RELEASE.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\logging\log4j\log4j-slf4j-impl\2.16.0\log4j-slf4j-impl-2.16.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\logging\log4j\log4j-api\2.16.0\log4j-api-2.16.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\logging\log4j\log4j-core\2.16.0\log4j-core-2.16.0.jar;E:\LiuTong\maven\fxq\antimoney\repository\org\apache\logging\log4j\log4j-web\2.16.0\log4j-web-2.16.0.jar cn.com.sinosoft.money.MoneyBootApplication

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.1.RELEASE)

[2023-11-27 16:32:17:881] [INFO] - org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:50) - Starting MoneyBootApplication on DESKTOP-Q308NLU with PID 15724 (E:\LiuTong\idea-work\fxq\target\classes started by sinosoft in E:\LiuTong\idea-work\fxq)
[2023-11-27 16:32:17:918] [INFO] - org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:679) - The following profiles are active: dev
[2023-11-27 16:32:18:040] [INFO] - org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:227) - Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
[2023-11-27 16:32:20:660] [WARN] - org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554) - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [cn.com.sinosoft.money.MoneyBootApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
[2023-11-27 16:32:20:677] [ERROR] - org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:858) - Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [cn.com.sinosoft.money.MoneyBootApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:691) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
	at cn.com.sinosoft.money.MoneyBootApplication.main(MoneyBootApplication.java:26) [classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.1.1.RELEASE.jar:2.1.1.RELEASE]
Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
	at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:169) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:392) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:317) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:242) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:199) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	... 17 more
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
	at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_291]
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_291]
	at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[?:1.8.0_291]
	at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:158) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:392) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:317) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:242) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:199) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	... 17 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_291]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_291]
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) ~[?:1.8.0_291]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_291]
	at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_291]
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_291]
	at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[?:1.8.0_291]
	at org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods(StandardAnnotationMetadata.java:158) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:392) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:317) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:242) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:199) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
	... 17 more

Process finished with exit code 0

经过排查发现我们的项目把一直都是把spring的内置tomcat容器排除,然后使用外置的tomcat容器。如果想要使用spring自带的tomcat容器只需要把这里注释掉即可反之亦然

  • 10
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值