六、Spring Boot使用Thymeleaf模板引擎

前言 使用thymeleaf模板引擎,首先是pom.xml添加依赖,接着是application.properties对thymeleaf进行配置(可选),最后就是添加Control和html进行使用了。下面通过网页登陆界面进行演示。 添加依赖和配置 <dependency> <groupId>org.springframework.boot</groupId> <artifact
相关文章
相关标签/搜索