SpringBoot整合jsp启动报错:Unable to start embedded container; nested exception is java.lang.NoSuchMethodEr

it2022-05-05  143

 

解决方法是:在pom.xml配置文件里添加

<parent>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-starter-parent</artifactId>     <version>2.0.2.RELEASE</version> </parent> 因为tomcat与springboot版本不兼容,所以讲springboot版本升级到2.0.2,与tomcat9.0上版本兼容。升级完配置重启就可以正常启动访问项目了。


最新回复(0)