Skip to content

Commit 2c1b793

Browse files
committed
Upgrade samples to Spring Boot 2.6.5
This also makes the necessary changes for the Thymeleaf Layout Dialect 3.0 update. Closes gh-1980
1 parent fba9313 commit 2c1b793

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
snapshotBuild = version.endsWith('SNAPSHOT')
55
milestoneBuild = !(releaseBuild || snapshotBuild)
66

7-
springBootVersion = '2.5.6'
7+
springBootVersion = '2.6.5'
88
}
99

1010
repositories {

spring-session-samples/spring-session-sample-boot-mongodb-reactive/src/main/resources/application.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ logging:
22
level:
33
org.springframework.data.mongodb: DEBUG
44
org.springframework.session: DEBUG
5+
spring:
6+
mongodb:
7+
embedded:
8+
version: 3.0.0
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
spring.thymeleaf.cache=false
22
spring.template.cache=false
33
spring.data.mongodb.port=0
4+
spring.mongodb.embedded.version=3.0.0

spring-session-samples/spring-session-sample-boot-mongodb-traditional/src/main/resources/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html xmlns:layout="https://github.com/ultraq/thymeleaf-layout-dialect" layout:decorator="layout">
1+
<html xmlns:layout="https://github.com/ultraq/thymeleaf-layout-dialect" layout:decorate="layout">
22
<head>
33
<title>Secured Content</title>
44
</head>

spring-session-samples/spring-session-sample-boot-mongodb-traditional/src/main/resources/templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:th="https://www.thymeleaf.org"
44
xmlns:layout="https://github.com/ultraq/thymeleaf-layout-dialect">
55
<head>
6-
<title layout:title-pattern="$DECORATOR_TITLE - $CONTENT_TITLE">Spring Session Sample</title>
6+
<title layout:title-pattern="$LAYOUT_TITLE - $CONTENT_TITLE">Spring Session Sample</title>
77
<link rel="icon" type="image/x-icon" th:href="@{/resources/img/favicon.ico}" href="../static/img/favicon.ico"/>
88
<link th:href="@{/webjars/bootstrap/css/bootstrap.min.css}" href="/webjars/bootstrap/css/bootstrap.min.css" rel="stylesheet"></link>
99
<style type="text/css">

0 commit comments

Comments
 (0)