Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
胡慧
cash-loan-flow-boss
Commits
fb8d2da5
Commit
fb8d2da5
authored
Jan 17, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session有效期
parent
27507c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Bootstrap.java
src/main/java/cn/quantgroup/cashloanflowboss/Bootstrap.java
+10
-1
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/Bootstrap.java
View file @
fb8d2da5
...
...
@@ -13,7 +13,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
import
org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
@EnableRedisHttpSession
(
maxInactiveIntervalInSeconds
=
72
00
)
@EnableRedisHttpSession
(
maxInactiveIntervalInSeconds
=
100
00
)
@EnableTransactionManagement
@SpringBootApplication
(
scanBasePackages
=
{
"cn.quantgroup.cashloanflowboss"
})
@Configuration
...
...
@@ -22,7 +22,16 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableAsync
(
proxyTargetClass
=
true
)
public
class
Bootstrap
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Bootstrap
.
class
,
args
);
}
@Bean
public
EmbeddedServletContainerCustomizer
containerCustomizer
()
{
return
container
->
{
container
.
setSessionTimeout
(
10000
);
// 单位为S
};
}
}
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