e-Power的模板引擎

模板引擎Thymeleaf

由于本项目是通过使用Thymeleaf模板技术来作为Spring boot的页面渲染引擎。

在对其他功能模块进行开发之前,需要先对Thymeleaf模板进行配置。

1. pom.xml添加配置

在项目pom.xml文件中,添加对Thymeleaf模板引擎的支持,如下所示:

image.png

2. 配置application.properties文件

另外,还需要对Spring boot的application.properties文件进行配置,如下所示:

image.png

自此,完成以上的这些配置以后,项目就可以通过Thymeleaf模板来开发功能页面了。