mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
提交修改
This commit is contained in:
@@ -22,11 +22,6 @@
|
|||||||
<artifactId>xboe-core</artifactId>
|
<artifactId>xboe-core</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.xboe</groupId>
|
|
||||||
<artifactId>xboe-redis</artifactId>
|
|
||||||
<version>1.0.0</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- java-jwt -->
|
<!-- java-jwt -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.auth0</groupId>
|
<groupId>com.auth0</groupId>
|
||||||
@@ -57,20 +52,12 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.session</groupId>
|
|
||||||
<artifactId>spring-session-data-redis</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.27</version>
|
<version>5.1.27</version>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public class StartRunner implements ApplicationRunner {
|
|||||||
}
|
}
|
||||||
mainOrgMap.put(org.getKid(),mainOrg.getId());//
|
mainOrgMap.put(org.getKid(),mainOrg.getId());//
|
||||||
}
|
}
|
||||||
|
//本地的检查 ,如果老库中没有,新库中有,也要设置为删除
|
||||||
List<MainOrganization> localList=mainService.getAllSysIdAndId();
|
List<MainOrganization> localList=mainService.getAllSysIdAndId();
|
||||||
for(MainOrganization mainOrg : localList) {
|
for(MainOrganization mainOrg : localList) {
|
||||||
if(!oldIds.contains(mainOrg.getSysId())) {
|
if(!oldIds.contains(mainOrg.getSysId())) {
|
||||||
@@ -105,6 +106,8 @@ public class StartRunner implements ApplicationRunner {
|
|||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
System.exit(0);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("执行失败",e);
|
log.error("执行失败",e);
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
# redis
|
|
||||||
spring.redis.database=2
|
|
||||||
spring.redis.host=127.0.0.1
|
|
||||||
spring.redis.password=ENC(zA5LNV8xw3yEx6LMwdGGBGgNsOaD3Cg+)
|
|
||||||
spring.redis.port=6379
|
|
||||||
|
|
||||||
# datasource config
|
# datasource config
|
||||||
# basic数据库
|
# basic数据库
|
||||||
spring.jpa.hibernate.ddl-auto=update
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
spring.jpa.open-in-view=false
|
spring.jpa.open-in-view=false
|
||||||
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
||||||
|
|
||||||
@@ -14,7 +10,7 @@ spring.datasource.driverClassName=com.mysql.jdbc.Driver
|
|||||||
# spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
# spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
||||||
# 当前数据库 basic 对应的数据库
|
# 当前数据库 basic 对应的数据库
|
||||||
spring.datasource.db1.driverClassName=com.mysql.jdbc.Driver
|
spring.datasource.db1.driverClassName=com.mysql.jdbc.Driver
|
||||||
spring.datasource.db1.jdbc-url=jdbc:mysql://127.0.0.1:3306/boeu_basic?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull
|
spring.datasource.db1.jdbc-url=jdbc:mysql://127.0.0.1:3306/boe_old?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull
|
||||||
spring.datasource.db1.username=root
|
spring.datasource.db1.username=root
|
||||||
spring.datasource.db1.password=ENC(lAoFOYuc8CAypPtigTNLYg==)
|
spring.datasource.db1.password=ENC(lAoFOYuc8CAypPtigTNLYg==)
|
||||||
|
|
||||||
@@ -23,27 +19,23 @@ spring.datasource.db1.password=ENC(lAoFOYuc8CAypPtigTNLYg==)
|
|||||||
# 主数据库 all 对应的数据库
|
# 主数据库 all 对应的数据库
|
||||||
spring.datasource.db2.driverClassName=com.mysql.jdbc.Driver
|
spring.datasource.db2.driverClassName=com.mysql.jdbc.Driver
|
||||||
# spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
# spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
||||||
spring.datasource.db2.jdbc-url=jdbc:mysql://127.0.0.1:3306/boe_base3?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull
|
spring.datasource.db2.jdbc-url=jdbc:mysql://127.0.0.1:3306/boeu_base?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull
|
||||||
spring.datasource.db2.username=root
|
spring.datasource.db2.username=root
|
||||||
spring.datasource.db2.password=ENC(lAoFOYuc8CAypPtigTNLYg==)
|
spring.datasource.db2.password=ENC(lAoFOYuc8CAypPtigTNLYg==)
|
||||||
|
|
||||||
|
|
||||||
logging.level.org.hibernate.SQL=DEBUG
|
logging.level.org.hibernate.SQL=ERROR
|
||||||
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
|
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
|
||||||
|
|
||||||
# 设置logback.xml位置
|
# 设置logback.xml位置
|
||||||
logging.config=classpath:log/logback-dev.xml
|
logging.config=classpath:log/logback-pro.xml
|
||||||
|
|
||||||
## 静态文件目录,默认是在static下面,以后独立到nginx下面配置
|
|
||||||
spring.web.resources.static-locations=file:E:/Projects/BOE/java/static
|
|
||||||
|
|
||||||
## 上传相磁的路径配置
|
## 上传相磁的路径配置
|
||||||
xboe.upload.file.temp_path=E:/Projects/BOE/java/static/temp
|
xboe.upload.file.temp_path=
|
||||||
xboe.upload.file.save_path=E:/Projects/BOE/java/static/upload
|
xboe.upload.file.save_path=
|
||||||
xboe.upload.file.http_path=http://localhost:9090/cdn/upload
|
xboe.upload.file.http_path=
|
||||||
|
|
||||||
## 新系统的内部地址,可以不通过nginx调用
|
|
||||||
xboe.inner.data.sync.baseurl=http://localhost:9090
|
|
||||||
|
|
||||||
#加密盐
|
#加密盐
|
||||||
#jasypt.encryptor.password=jasypt
|
#jasypt.encryptor.password=jasypt
|
||||||
|
|||||||
Reference in New Issue
Block a user