一个坑:
springboot中搜索页面出现404/This application has no explicit mapping for /error解决

我的目录:springboot中搜索页面出现404/This application has no explicit mapping for /error解决

错误原因:

我写了一个跳转页面的controller
springboot中搜索页面出现404/This application has no explicit mapping for /error解决
意思是,只要我输入mobile,就会在template下面找到mobile.html

解决方案:

此时我应该在搜索框输入 localhost:8080/mobile 而不是xxx/mobile.html
如图:springboot中搜索页面出现404/This application has no explicit mapping for /error解决
仅适用于部分情况。

相关文章:

  • 2021-07-28
  • 2021-12-30
  • 2021-05-29
  • 2021-10-22
  • 2021-07-17
  • 2021-07-03
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-12-11
  • 2022-12-23
  • 2021-04-22
相关资源
相似解决方案