問題描述
問題分析
1.tomcat出問題了,更換本地的tomcat
2.maven出問題了,更換maven
3.tomcat和maven可能同時出問題,這個當然需要都更換一下了
4.項目中jdk的編譯版本與引用不一致
解決方案
1、使用Spring Boot內置Tomcat
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
或者
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2、檢查項目設置
參考文章
https://blog.csdn.net/xu12387/article/details/87777153
https://blog.csdn.net/weixin_43850509/article/details/100943657