Commit 27507c4d authored by suntao's avatar suntao

session 时间

parent 3df98005
......@@ -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
@EnableRedisHttpSession(maxInactiveIntervalInSeconds=7200)
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {"cn.quantgroup.cashloanflowboss"})
@Configuration
......@@ -25,14 +25,4 @@ public class Bootstrap {
public static void main(String[] args) {
SpringApplication.run(Bootstrap.class, args);
}
@Bean
public EmbeddedServletContainerCustomizer containerCustomizer() {
return container -> {
container.setSessionTimeout(7200);// 单位为S
};
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment