Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
203b6f2f
Commit
203b6f2f
authored
Nov 23, 2016
by
Peter Leibiger
Committed by
Stephane Nicoll
Nov 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undertow session persistence with spring-boot-devtools
Fixes gh-7460
parent
65b6d8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
FileSessionPersistence.java
...oot/context/embedded/undertow/FileSessionPersistence.java
+6
-3
No files found.
spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistence.java
View file @
203b6f2f
...
...
@@ -30,6 +30,8 @@ import java.util.Map;
import
io.undertow.servlet.UndertowServletLogger
;
import
io.undertow.servlet.api.SessionPersistenceManager
;
import
org.springframework.core.ConfigurableObjectInputStream
;
/**
* {@link SessionPersistenceManager} that stores session information in a file.
*
...
...
@@ -82,7 +84,7 @@ public class FileSessionPersistence implements SessionPersistenceManager {
try
{
File
file
=
getSessionFile
(
deploymentName
);
if
(
file
.
exists
())
{
return
load
(
file
);
return
load
(
file
,
classLoader
);
}
}
catch
(
Exception
ex
)
{
...
...
@@ -91,9 +93,10 @@ public class FileSessionPersistence implements SessionPersistenceManager {
return
null
;
}
private
Map
<
String
,
PersistentSession
>
load
(
File
file
)
private
Map
<
String
,
PersistentSession
>
load
(
File
file
,
ClassLoader
classLoader
)
throws
IOException
,
ClassNotFoundException
{
ObjectInputStream
stream
=
new
ObjectInputStream
(
new
FileInputStream
(
file
));
ObjectInputStream
stream
=
new
ConfigurableObjectInputStream
(
new
FileInputStream
(
file
),
classLoader
);
try
{
return
load
(
stream
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment