[java] springboot thymeleaf模板文件未生效
problem
引入了thymeleaf模板mvn包
但是頁面訪問只顯示返回字符串'index',而不是templates目錄下的index.html
solutin
原因: 註解不對
@RestController -> @Controller 即可
[java] springboot thymeleaf模板文件未生效
引入了thymeleaf模板mvn包
但是頁面訪問只顯示返回字符串'index',而不是templates目錄下的index.html
原因: 註解不對
@RestController -> @Controller 即可