spring boot 首页配置

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

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

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

最终解析到login页面

猜你喜欢

转载自blog.csdn.net/T2080305/article/details/81540422