File tree Expand file tree Collapse file tree 10 files changed +24
-19
lines changed
spring-session-sample-boot-findbyusername/src/main
spring-session-sample-boot-mongodb-reactive/src/main/resources
spring-session-sample-boot-mongodb-traditional
spring-session-sample-boot-redis-json/src/main/java/sample/web
spring-session-sample-boot-websocket/src/main/java/sample/data Expand file tree Collapse file tree 10 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
snapshotBuild = version. endsWith(' SNAPSHOT' )
5
5
milestoneBuild = ! (releaseBuild || snapshotBuild)
6
6
7
- springBootVersion = ' 2.5.5 '
7
+ springBootVersion = ' 3.0.0-SNAPSHOT '
8
8
}
9
9
10
10
repositories {
Original file line number Diff line number Diff line change 19
19
import java .io .IOException ;
20
20
import java .net .InetAddress ;
21
21
22
- import javax .servlet .FilterChain ;
23
- import javax .servlet .ServletException ;
24
- import javax .servlet .http .HttpServletRequest ;
25
- import javax .servlet .http .HttpServletResponse ;
26
- import javax .servlet .http .HttpSession ;
22
+ import jakarta .servlet .FilterChain ;
23
+ import jakarta .servlet .ServletException ;
24
+ import jakarta .servlet .http .HttpServletRequest ;
25
+ import jakarta .servlet .http .HttpServletResponse ;
26
+ import jakarta .servlet .http .HttpSession ;
27
27
28
28
import com .maxmind .geoip2 .DatabaseReader ;
29
29
import com .maxmind .geoip2 .model .CityResponse ;
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ <h1>Secured Page</h1>
21
21
< tr th:each ="sessionElement : ${sessions} " th:with ="details=${sessionElement.getAttribute('SESSION_DETAILS')} ">
22
22
< td th:text ="${sessionElement.id.substring(30)} "> </ td >
23
23
< td th:text ="${details?.location} "> </ td >
24
- < td th:text ="${#temporals .format(sessionElement.creationTime.atZone(T(java.time.ZoneId).systemDefault()) ,'dd/MMM/yyyy HH:mm:ss')} "> </ td >
25
- < td th:text ="${#temporals .format(sessionElement.lastAccessedTime.atZone(T(java.time.ZoneId).systemDefault()) ,'dd/MMM/yyyy HH:mm:ss')} "> </ td >
24
+ < td th:text ="${#dates .format(sessionElement.creationTime,'dd/MMM/yyyy HH:mm:ss')} "> </ td >
25
+ < td th:text ="${#dates .format(sessionElement.lastAccessedTime,'dd/MMM/yyyy HH:mm:ss')} "> </ td >
26
26
< td th:text ="${details?.accessType} "> </ td >
27
27
< td >
28
28
< form th:action ="@{'/sessions/' + ${sessionElement.id}} " th:method ="post ">
Original file line number Diff line number Diff line change 2
2
level :
3
3
org.springframework.data.mongodb : DEBUG
4
4
org.springframework.session : DEBUG
5
+ spring :
6
+ mongodb :
7
+ embedded :
8
+ version : 3.4.3
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ dependencies {
5
5
implementation " org.springframework.boot:spring-boot-starter-web"
6
6
implementation " org.springframework.boot:spring-boot-starter-thymeleaf"
7
7
implementation " nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
8
- implementation " org.thymeleaf.extras:thymeleaf-extras-springsecurity5 "
8
+ implementation " org.thymeleaf.extras:thymeleaf-extras-springsecurity6 "
9
9
implementation " org.springframework.boot:spring-boot-starter-data-mongodb"
10
10
implementation " org.springframework.boot:spring-boot-starter-security"
11
11
implementation " de.flapdoodle.embed:de.flapdoodle.embed.mongo"
Original file line number Diff line number Diff line change 1
1
spring.thymeleaf.cache =false
2
2
spring.template.cache =false
3
3
spring.data.mongodb.port =0
4
+ spring.mongodb.embedded.version =3.4.3
Original file line number Diff line number Diff line change 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 ">
2
2
< head >
3
3
< title > Secured Content</ title >
4
4
</ head >
Original file line number Diff line number Diff line change 3
3
xmlns:th ="https://www.thymeleaf.org "
4
4
xmlns:layout ="https://github.com/ultraq/thymeleaf-layout-dialect ">
5
5
< 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 >
7
7
< link rel ="icon " type ="image/x-icon " th:href ="@{/resources/img/favicon.ico} " href ="../static/img/favicon.ico "/>
8
8
< link th:href ="@{/webjars/bootstrap/css/bootstrap.min.css} " href ="/webjars/bootstrap/css/bootstrap.min.css " rel ="stylesheet "> </ link >
9
9
< style type ="text/css ">
Original file line number Diff line number Diff line change 16
16
17
17
package sample .web ;
18
18
19
- import javax .servlet .http .HttpServletRequest ;
19
+ import jakarta .servlet .http .HttpServletRequest ;
20
20
21
21
import org .springframework .stereotype .Controller ;
22
22
import org .springframework .util .ObjectUtils ;
Original file line number Diff line number Diff line change 18
18
19
19
import java .io .Serializable ;
20
20
21
- import javax .persistence .Column ;
22
- import javax .persistence .Entity ;
23
- import javax .persistence .GeneratedValue ;
24
- import javax .persistence .GenerationType ;
25
- import javax .persistence .Id ;
26
- import javax .validation .constraints .Email ;
27
- import javax .validation .constraints .NotEmpty ;
21
+ import jakarta .persistence .Column ;
22
+ import jakarta .persistence .Entity ;
23
+ import jakarta .persistence .GeneratedValue ;
24
+ import jakarta .persistence .GenerationType ;
25
+ import jakarta .persistence .Id ;
26
+ import jakarta .validation .constraints .Email ;
27
+ import jakarta .validation .constraints .NotEmpty ;
28
28
29
29
import org .springframework .security .crypto .password .PasswordEncoder ;
30
30
You can’t perform that action at this time.
0 commit comments