阅读背景:

spring boot返回html文件

来源:互联网 

1.返回htmle文件
第一种方式

这种情况,controller必须使用@Controller注解

在pom.xml文件中加入依赖:spring-boot-starter-thymeleaf 例如:在




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: