1、springboot项目,application.properties里设置了
spring.mvc.view.prefix=/pages/
spring.mvc.view.suffix=.html
controller配置了路径@RequestMapping("/{page}")。
2、一个myblog.html页面,访问ip:端口/myblog就可以访问成功。
页面里有一个ifrmae,属性src设为"articlesList.html"时页面报406的错误。
3、解决方法:src属性值要加上page/ 前缀,iframe对象 src="pages/articlesList.html"