no message
parent
5b77236450
commit
58432b86d7
|
|
@ -4,7 +4,7 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
db-type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:47.100.54.81}:${DB_PORT:53306}/${DB_NAME:byd_dg}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
url: jdbc:log4jdbc:mysql://${DB_HOST:47.100.54.81}:${DB_PORT:53306}/${DB_NAME:byd_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
||||||
username: ${DB_USER:root}
|
username: ${DB_USER:root}
|
||||||
password: ${DB_PWD:Youchain@56}
|
password: ${DB_PWD:Youchain@56}
|
||||||
# 初始连接数
|
# 初始连接数
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
db-type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:115.159.67.99}:${DB_PORT:53306}/${DB_NAME:jingzhou_xks}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.100.102}:${DB_PORT:3306}/${DB_NAME:byd_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
||||||
username: ${DB_USER:root}
|
username: ${DB_USER:root}
|
||||||
password: ${DB_PWD:Youchain@56}
|
password: ${DB_PWD:Youchain@56}
|
||||||
# 初始连接数
|
# 初始连接数
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,8 @@ spring:
|
||||||
redis:
|
redis:
|
||||||
#数据库索引
|
#数据库索引
|
||||||
database: ${REDIS_DB:2}
|
database: ${REDIS_DB:2}
|
||||||
#host: ${REDIS_HOST:115.159.67.99}
|
#host: ${REDIS_HOST:192.168.100.102}
|
||||||
#password: ${REDIS_PWD:123456}
|
#password: ${REDIS_PWD:123456}
|
||||||
#port: ${REDIS_PORT:6380}
|
|
||||||
|
|
||||||
host: ${REDIS_HOST:localhost}
|
host: ${REDIS_HOST:localhost}
|
||||||
password: ${REDIS_PWD:}
|
password: ${REDIS_PWD:}
|
||||||
|
|
|
||||||
|
|
@ -24,30 +24,6 @@ public class EladminSystemApplicationTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
List<BarCodeVo> barCodeVos = new ArrayList<>();
|
|
||||||
|
|
||||||
BarCodeVo barCodeVo = new BarCodeVo();
|
|
||||||
barCodeVo.setBoxNumber("123");
|
|
||||||
barCodeVos.add(barCodeVo);
|
|
||||||
|
|
||||||
BarCodeVo barCodeVo2 = new BarCodeVo();
|
|
||||||
barCodeVo2.setBoxNumber("456");
|
|
||||||
barCodeVos.add(barCodeVo2);
|
|
||||||
|
|
||||||
BarCodeVo barCodeVo3 = new BarCodeVo();
|
|
||||||
barCodeVo3.setBoxNumber("123");
|
|
||||||
barCodeVos.add(barCodeVo3);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final int MAX_TASK_COUNT = 4;
|
|
||||||
private static final long TIMEOUT_MS = 600000; // 10分钟,以毫秒为单位
|
|
||||||
private long lastTaskTime = System.currentTimeMillis();
|
|
||||||
private List<Integer> taskQueue = new ArrayList<>(MAX_TASK_COUNT);
|
|
||||||
|
|
||||||
void aa() {
|
|
||||||
|
|
||||||
CompletableFuture<Void> asnDetailFuture = CompletableFuture.runAsync(() -> {
|
CompletableFuture<Void> asnDetailFuture = CompletableFuture.runAsync(() -> {
|
||||||
System.out.println("新增asnDetail");
|
System.out.println("新增asnDetail");
|
||||||
});
|
});
|
||||||
|
|
@ -61,6 +37,18 @@ public class EladminSystemApplicationTests {
|
||||||
});
|
});
|
||||||
taskFuture.join();
|
taskFuture.join();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final int MAX_TASK_COUNT = 4;
|
||||||
|
private static final long TIMEOUT_MS = 600000; // 10分钟,以毫秒为单位
|
||||||
|
private long lastTaskTime = System.currentTimeMillis();
|
||||||
|
private List<Integer> taskQueue = new ArrayList<>(MAX_TASK_COUNT);
|
||||||
|
|
||||||
|
void aa() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Set<BarCodeVo> barCodeVos = new HashSet<>();
|
Set<BarCodeVo> barCodeVos = new HashSet<>();
|
||||||
|
|
||||||
BarCodeVo barCodeVo = new BarCodeVo();
|
BarCodeVo barCodeVo = new BarCodeVo();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue