因为使用的是Idea会出现该问题(前提要保证配置文件的代码、依赖等都配置正确),eclipse应该不会

SpringBoot访问jsp报404
解决方法:
SpringBoot访问jsp报404

SpringBoot访问jsp报404
点开Environment
SpringBoot访问jsp报404
这里配置你要启动的项目的路径
SpringBoot访问jsp报404
最后重新运行SpringBoot项目,如果不行,重启idea试试!

相关文章:

  • 2021-12-29
  • 2021-12-16
  • 2021-10-08
  • 2021-12-20
  • 2022-12-23
  • 2021-10-10
  • 2021-05-26
猜你喜欢
  • 2021-08-20
  • 2021-07-31
  • 2021-08-11
  • 2021-12-04
  • 2021-06-30
  • 2021-06-28
  • 2021-07-22
相关资源
相似解决方案