spring boot 页面访问路径

springboot在8080后面的地址是直接对应的项目中resources文件中的static包下的文件 

即,若a.html在 resources/static/a.html,访问的路径就为 :localhost:8080/a.html。

若,b.html在 resources/static/test/test1/b.html ,访问的路径就为:localhsot:8080/test/test1/b.html。

spring boot 页面访问路径

报这个错查了好久,检查配置,java代码都没有错误,到底是为什么呢?

后台报这个错,

spring boot 页面访问路径

发现页面 meta 没有结束符郁闷了。说明代码返回了但是页面错误。

spring boot 页面访问路径