pom.xml里標注的“-spring5” 千萬不能丟,否則會報錯“springboot cannot resolve MVC view”:
1 <properties> 2 <java.version>1.8</java.version> 3 <thymeleaf-spring5.version>3.0.2.RELEASE</thymeleaf-spring5.version> 4 <thymeleaf-layout-dialect.version>2.3.0</thymeleaf-layout-dialect.version> 5 </properties>
