spring mvc中首页的配置是通过在web.xml中增加 <welcome-file-list> 实现的,其中 welcome-file 指向的是controller中的路径

spring boot 首页配置

spring boot 首页配置

spring mvc 最终会返回一个index页面

在spring boot中,也是可以配置首页的,不过配置的方式不一样,下面讲解一下:

spring boot 首页配置

spring boot 首页配置

最终解析到login页面

相关文章:

  • 2021-11-19
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-04-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-01-09
  • 2021-08-17
  • 2021-09-24
相关资源
相似解决方案