fix
parent
5053659d8c
commit
2f4862d573
|
@ -35,7 +35,7 @@ public class JwtUtils {
|
||||||
/**
|
/**
|
||||||
* token过期时间(分钟)
|
* token过期时间(分钟)
|
||||||
*/
|
*/
|
||||||
public static final long expirationTime = 30;
|
public static final long expirationTime = 30 * 24 * 60;
|
||||||
|
|
||||||
public static String createToken(String username, String password, Integer roleId) {
|
public static String createToken(String username, String password, Integer roleId) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -112,6 +112,7 @@ user-settings:
|
||||||
- http://127.0.0.1:9091
|
- http://127.0.0.1:9091
|
||||||
- http://172.19.128.50:9091
|
- http://172.19.128.50:9091
|
||||||
- http://172.19.128.50:8080
|
- http://172.19.128.50:8080
|
||||||
|
server-id: 00001
|
||||||
# [可选] 日志配置, 一般不需要改
|
# [可选] 日志配置, 一般不需要改
|
||||||
logging:
|
logging:
|
||||||
config: classpath:logback-spring-local.xml
|
config: classpath:logback-spring-local.xml
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.genersoft.iot.vmp.test;
|
||||||
|
|
||||||
import com.genersoft.iot.vmp.common.VideoManagerConstants;
|
import com.genersoft.iot.vmp.common.VideoManagerConstants;
|
||||||
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
||||||
|
import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
|
||||||
import com.genersoft.iot.vmp.storager.dao.DeviceChannelMapper;
|
import com.genersoft.iot.vmp.storager.dao.DeviceChannelMapper;
|
||||||
import com.genersoft.iot.vmp.storager.dao.DeviceMapper;
|
import com.genersoft.iot.vmp.storager.dao.DeviceMapper;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
@ -32,4 +33,13 @@ public class BaseTest {
|
||||||
deviceChannelMapper.offlineByDeviceId("34020000001320000001");
|
deviceChannelMapper.offlineByDeviceId("34020000001320000001");
|
||||||
deviceMapper.update(device);
|
deviceMapper.update(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private VideoStreamSessionManager videoStreamSessionManager;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void btest() {
|
||||||
|
|
||||||
|
videoStreamSessionManager.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue