@@ -10,6 +10,10 @@ to use Thymeleaf for login and error pages.
1010All the code seen here comes from a working application. You can view or
1111download the source code from [ its GitHub repo] ( https://github.com/thymeleaf/thymeleafexamples-springsecurity ) .
1212
13+ ** Note** that the Thymeleaf integration packages for Spring Security support both
14+ Spring MVC and Spring WebFlux applications since Spring Security 5, but this
15+ article will focus on a Spring MVC configuration.
16+
1317
1418Prerequisites
1519-------------
@@ -92,7 +96,7 @@ Our **login.html** template is as follows:
9296Error page
9397----------
9498
95- We can also configure an error page based on Thymeleaf . In this case Spring
99+ We can also configure an error page based on Thymeleaf. In this case Spring
96100Security is not involved at all, we should simply add an
97101[ ExceptionHandler] ( https://spring.io/blog/2013/11/01/exception-handling-in-spring-mvc )
98102to our Spring configuration like:
@@ -142,9 +146,9 @@ to use this `error.html` in other error reporting scenarios).
142146Spring Security Dialect
143147-----------------------
144148
145- The [ Spring Security 3 integration
146- module] ( https://github.com/thymeleaf/thymeleaf-extras-springsecurity3 )
147- is a Thymeleaf dialect equivalent to [ Spring security
149+ In Spring MVC environments, the [ Spring Security integration
150+ module] ( https://github.com/thymeleaf/thymeleaf-extras-springsecurity )
151+ works as a replacement of the [ Spring security
148152taglib] ( http://docs.spring.io/spring-security/site/docs/4.2.x/reference/html/taglibs.html ) .
149153
150154We use this dialect in the example in order to print the logged user
0 commit comments