问下 springboot 访问localhost 为什么 自动 跳到 index.html了 哪里配置的?
问下 springboot 访问localhost 为什么 自动 跳到 index.html了 哪里配置的?
Spring boot之默认首页的设置
index.html是你的sprintboot中的模板吗?
默认访问resuorces下的public下的index
可在yml配置文件中配置
spring boot 默认会访问 static文件下面的index.html。不需要任何配置就能访问。就像常规web项目默认访问web.xml下的index.jsp是一样的。