更新的依赖项和 Thymeleaf 标签不起作用 [英] Updated dependencies and Thymeleaf tags don't work
问题描述
将我的依赖项和项目更新到最新版本的 Spring Boot 2.1.1,突然安全标签不起作用.我正在使用 Thymeleaf.
pom.xml
<groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.1.RELEASE</version></父母><依赖项><依赖><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><version>2.1.1.RELEASE</version></依赖><依赖><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId><version>2.1.1.RELEASE</version></依赖><依赖><groupId>org.thymeleaf.extras</groupId><artifactId>thymeleaf-extras-springsecurity4</artifactId><version>3.0.4.RELEASE</version></依赖>...</依赖项>
我的 HTML:
<html xmlns="http://www.w3.org/1999/xhtml"xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"><头><title></title>头部><身体><div sec:authorize="isAuthenticated()"><!-- 不起作用-->...