错误1272 --- [restartedMain] o.s.boot.SpringApplication:应用程序启动失败

时间:2020-05-27 10:11:14

标签: spring-boot-maven-plugin

2020-05-27 15:28:44.564错误1272 --- [restartedMain] o.s.boot.SpringApplication:应用程序启动失败

org.springframework.context.ApplicationContextException:无法启动嵌入式容器。嵌套的异常是java.lang.NoSuchMethodError:org.apache.catalina.Server.setCatalinaBase(Ljava / io / File;)V 在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)〜[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)〜[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE] 在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)〜[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)上[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)上[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:313)上[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)上[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)上[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在com.letsstartcoding.angularjsrestapidemo.CrudApp.main(CrudApp.java:9)[classes /:na] 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[na:1.8.0_66] 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[na:1.8.0_66] 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_66] 在java.lang.reflect.Method.invoke(Method.java:497)〜[na:1.8.0_66] 在org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)上[spring-boot-devtools-1.4.0.RELEASE.jar:1.4.0.RELEASE] 引起原因:java.lang.NoSuchMethodError:org.apache.catalina.Server.setCatalinaBase(Ljava / io / File;)V 在org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:674)〜[tomcat-embed-core-8.5.4.jar:8.5.4] 在org.apache.catalina.startup.Tomcat.getServer(Tomcat.java:501)〜[tomcat-embed-core-8.5.4.jar:8.5.4] 在org.apache.catalina.startup.Tomcat.getService(Tomcat.java:445)〜[tomcat-embed-core-8.5.4.jar:8.5.4] 在org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:167)〜[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)〜[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] 在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)〜[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE] ...省略了13个常见框架

0 个答案:

没有答案