美文网首页
Springboot项目启动--404

Springboot项目启动--404

作者: 我想专心学习 | 来源:发表于2020-03-14 10:20 被阅读0次

问题:localhost:8080,找不到index页面,或者其他Controller也访问不了
原因:war exploded的配置和部署有关
解决方法:
1.干掉重新添加


1.png

2.tomcat重新配置


2.png

一定注意Application context不要填东西。

重新启动项目,就能正常访问了。

3.png

相关文章

网友评论

      本文标题:Springboot项目启动--404

      本文链接:https://www.haomeiwen.com/subject/jrdmshtx.html