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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
7fd1de0e
Commit
7fd1de0e
authored
Jan 17, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session
parent
d44b4567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
Bootstrap.java
src/main/java/cn/quantgroup/cashloanflowboss/Bootstrap.java
+1
-15
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/Bootstrap.java
View file @
7fd1de0e
...
...
@@ -2,19 +2,15 @@ package cn.quantgroup.cashloanflowboss;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer
;
import
org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cloud.netflix.feign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
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
=
10800
,
redisNamespace
=
"boss
"
)
@EnableRedisHttpSession
(
maxInactiveIntervalInSeconds
=
7200
,
redisNamespace
=
"${spring.application.name}
"
)
@EnableTransactionManagement
@SpringBootApplication
(
scanBasePackages
=
{
"cn.quantgroup.cashloanflowboss"
})
@Configuration
...
...
@@ -23,18 +19,8 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableAsync
(
proxyTargetClass
=
true
)
public
class
Bootstrap
{
@Value
(
"${server.session.timeout}"
)
private
Integer
sessionTimeout
;
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Bootstrap
.
class
,
args
);
}
// @Bean
// public EmbeddedServletContainerCustomizer containerCustomizer() {
// return container -> {
// container.setSessionTimeout(sessionTimeout);// 单位为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