在使用logback时候,需要引入
thymeleaf的配置
thymeleaf: suffix: .html check-template-location: true encoding: UTF-8 content-type: text/html mode: LEGACYHTML5 cache: false
顺便也引入thymeleaf的依赖:
<!--thymeleaf模板引擎 start-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
<!--thymeleaf模板引擎 start-->