diff --git a/docs/guides/src/docs/asciidoc/_hello-includes/secure-the-application-boot.asc b/docs/guides/src/docs/asciidoc/_hello-includes/secure-the-application-boot.asc
index d6e27d82a31..17ebbab416c 100644
--- a/docs/guides/src/docs/asciidoc/_hello-includes/secure-the-application-boot.asc
+++ b/docs/guides/src/docs/asciidoc/_hello-includes/secure-the-application-boot.asc
@@ -26,7 +26,7 @@ In order to use Spring Security you must add the necessary dependencies. For the
org.thymeleaf.extras
- thymeleaf-extras-springsecurity4 <1>
+ thymeleaf-extras-springsecurity5 <1>
2.1.2.RELEASE
diff --git a/docs/guides/src/docs/asciidoc/helloworld-boot.asc b/docs/guides/src/docs/asciidoc/helloworld-boot.asc
index 33619ddb267..d8f726efd9c 100644
--- a/docs/guides/src/docs/asciidoc/helloworld-boot.asc
+++ b/docs/guides/src/docs/asciidoc/helloworld-boot.asc
@@ -32,7 +32,7 @@ Now that we have authenticated, let's update the application to display the user
[source,html]
----
-
+
Hello Spring Security
diff --git a/gradle.properties b/gradle.properties
index c031bb3ea00..72b3ef19839 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
gaeVersion=1.9.66
-springBootVersion=2.1.0.M4
+springBootVersion=2.1.0.RELEASE
version=5.2.0.BUILD-SNAPSHOT
diff --git a/samples/boot/helloworld/spring-security-samples-boot-helloworld.gradle b/samples/boot/helloworld/spring-security-samples-boot-helloworld.gradle
index 3c7c1cc0438..edb99c261cc 100644
--- a/samples/boot/helloworld/spring-security-samples-boot-helloworld.gradle
+++ b/samples/boot/helloworld/spring-security-samples-boot-helloworld.gradle
@@ -7,7 +7,7 @@ dependencies {
compile project(':spring-security-web')
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-web'
- compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
+ compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
testCompile project(':spring-security-test')
testCompile 'org.springframework.boot:spring-boot-starter-test'
diff --git a/samples/boot/helloworld/src/main/resources/templates/index.html b/samples/boot/helloworld/src/main/resources/templates/index.html
index cf6b234bb93..a395cd06239 100644
--- a/samples/boot/helloworld/src/main/resources/templates/index.html
+++ b/samples/boot/helloworld/src/main/resources/templates/index.html
@@ -1,5 +1,5 @@
-
+
Hello Spring Security
diff --git a/samples/boot/oauth2login-webflux/spring-security-samples-boot-oauth2login-webflux.gradle b/samples/boot/oauth2login-webflux/spring-security-samples-boot-oauth2login-webflux.gradle
index 88e6d285d8d..d0540b7580a 100644
--- a/samples/boot/oauth2login-webflux/spring-security-samples-boot-oauth2login-webflux.gradle
+++ b/samples/boot/oauth2login-webflux/spring-security-samples-boot-oauth2login-webflux.gradle
@@ -8,7 +8,7 @@ dependencies {
compile project(':spring-security-oauth2-jose')
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-webflux'
- compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
+ compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
testCompile project(':spring-security-test')
testCompile 'net.sourceforge.htmlunit:htmlunit'
diff --git a/samples/boot/oauth2login/spring-security-samples-boot-oauth2login.gradle b/samples/boot/oauth2login/spring-security-samples-boot-oauth2login.gradle
index 01bce8a118f..65a4d050fda 100644
--- a/samples/boot/oauth2login/spring-security-samples-boot-oauth2login.gradle
+++ b/samples/boot/oauth2login/spring-security-samples-boot-oauth2login.gradle
@@ -8,7 +8,7 @@ dependencies {
compile project(':spring-security-oauth2-jose')
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-web'
- compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
+ compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
testCompile project(':spring-security-test')
testCompile 'net.sourceforge.htmlunit:htmlunit'
diff --git a/samples/boot/oauth2login/src/main/resources/templates/index.html b/samples/boot/oauth2login/src/main/resources/templates/index.html
index c5a54504d8c..f34527dc7c8 100644
--- a/samples/boot/oauth2login/src/main/resources/templates/index.html
+++ b/samples/boot/oauth2login/src/main/resources/templates/index.html
@@ -1,5 +1,5 @@
-
+
Spring Security - OAuth 2.0 Login
diff --git a/samples/boot/oauth2webclient-webflux/spring-security-samples-boot-oauth2webclient-webflux.gradle b/samples/boot/oauth2webclient-webflux/spring-security-samples-boot-oauth2webclient-webflux.gradle
index fd5ba979d9c..afc00ff28d9 100644
--- a/samples/boot/oauth2webclient-webflux/spring-security-samples-boot-oauth2webclient-webflux.gradle
+++ b/samples/boot/oauth2webclient-webflux/spring-security-samples-boot-oauth2webclient-webflux.gradle
@@ -6,7 +6,7 @@ dependencies {
compile project(':spring-security-oauth2-jose')
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-webflux'
- compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
+ compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
compile 'io.projectreactor.netty:reactor-netty'
testCompile project(':spring-security-test')
diff --git a/samples/boot/oauth2webclient-webflux/src/main/resources/templates/index.html b/samples/boot/oauth2webclient-webflux/src/main/resources/templates/index.html
index 73eb0fb928d..8617f1775bc 100644
--- a/samples/boot/oauth2webclient-webflux/src/main/resources/templates/index.html
+++ b/samples/boot/oauth2webclient-webflux/src/main/resources/templates/index.html
@@ -1,5 +1,5 @@
-
+
OAuth2 WebClient Showcase
diff --git a/samples/boot/oauth2webclient/spring-security-samples-boot-oauth2webclient.gradle b/samples/boot/oauth2webclient/spring-security-samples-boot-oauth2webclient.gradle
index b5ad5e18504..677feab2d86 100644
--- a/samples/boot/oauth2webclient/spring-security-samples-boot-oauth2webclient.gradle
+++ b/samples/boot/oauth2webclient/spring-security-samples-boot-oauth2webclient.gradle
@@ -9,7 +9,7 @@ dependencies {
compile 'org.springframework:spring-webflux'
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-web'
- compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
+ compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
compile 'io.projectreactor.netty:reactor-netty'
testCompile project(':spring-security-test')
diff --git a/samples/boot/oauth2webclient/src/main/resources/templates/index.html b/samples/boot/oauth2webclient/src/main/resources/templates/index.html
index 49eea0a6bca..a32fa48a2f5 100644
--- a/samples/boot/oauth2webclient/src/main/resources/templates/index.html
+++ b/samples/boot/oauth2webclient/src/main/resources/templates/index.html
@@ -1,5 +1,5 @@
-
+
OAuth2 WebClient Showcase