提交 | 用户 | 时间
|
1ac2bc
|
1 |
/** |
懒 |
2 |
* Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com) |
|
3 |
* <p> |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* <p> |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* <p> |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package cn.stylefeng.guns.sys.core.properties; |
|
17 |
|
|
18 |
import lombok.Data; |
|
19 |
|
|
20 |
/** |
|
21 |
* guns项目配置 |
|
22 |
* |
|
23 |
* @author stylefeng |
|
24 |
* @Date 2017/5/23 22:31 |
|
25 |
*/ |
|
26 |
@Data |
|
27 |
public class GunsProperties { |
|
28 |
|
|
29 |
public static final String PREFIX = "guns"; |
|
30 |
|
|
31 |
private Boolean springSessionOpen = false; |
|
32 |
|
|
33 |
/** |
|
34 |
* session 失效时间(默认为30分钟 单位:秒) |
|
35 |
*/ |
|
36 |
private Integer sessionInvalidateTime = 30 * 60; |
|
37 |
|
|
38 |
/** |
|
39 |
* session 验证失效时间(默认为15分钟 单位:秒) |
|
40 |
*/ |
|
41 |
private Integer sessionValidationInterval = 15 * 60; |
|
42 |
|
|
43 |
} |