06.整合Thymeleaf 导入thymeleaf-Shiro的maven。 <dependency> <groupId>com.github.theborakompanioni</groupId> <artifactId>thymeleaf-extras-shiro</artifactId> <version>2.1.0</version> </dependency> 在shiroConfig中更新添加ShiroDialect类。用于整合Shiro-thymeleaf。 //ShiroDialect整合Shiro-thymeleaf @Bean pu