From 18aacaeaceceba2bdeba9f47bfd73a2aaa7f8ce1 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 23 Nov 2022 09:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=8D=E9=9C=80=E8=A6=81=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- servers/boe-server-case/pom.xml | 17 ++--------------- .../xboe/casetask/entity/CasesMajorType.java | 2 +- .../main/resources/application-dev.properties | 18 ++---------------- .../main/resources/application-pre.properties | 15 --------------- .../main/resources/application-pro.properties | 17 ++--------------- .../main/resources/application-test.properties | 17 ++--------------- .../src/main/resources/application.properties | 8 ++------ 7 files changed, 11 insertions(+), 83 deletions(-) diff --git a/servers/boe-server-case/pom.xml b/servers/boe-server-case/pom.xml index 87dda106..67f4beea 100644 --- a/servers/boe-server-case/pom.xml +++ b/servers/boe-server-case/pom.xml @@ -23,11 +23,7 @@ xboe-core 1.0.0 - - com.xboe - xboe-redis - 1.0.0 - + com.xboe xboe-module-event @@ -70,20 +66,11 @@ org.springframework.boot spring-boot-starter-data-jpa - - org.springframework.boot - spring-boot-starter-data-redis - org.springframework.boot spring-boot-starter-web - - org.springframework.session - spring-session-data-redis - - - + mysql mysql-connector-java 5.1.27 diff --git a/servers/boe-server-case/src/main/java/com/xboe/casetask/entity/CasesMajorType.java b/servers/boe-server-case/src/main/java/com/xboe/casetask/entity/CasesMajorType.java index ba777e84..a72dc8b5 100644 --- a/servers/boe-server-case/src/main/java/com/xboe/casetask/entity/CasesMajorType.java +++ b/servers/boe-server-case/src/main/java/com/xboe/casetask/entity/CasesMajorType.java @@ -15,7 +15,7 @@ import java.util.Set; * */ @Data -@Entity +@Entity @EqualsAndHashCode(callSuper = false) @Table(name = SysConstant.TABLE_PRE+"cases_major_type") public class CasesMajorType extends IdEntity{ diff --git a/servers/boe-server-case/src/main/resources/application-dev.properties b/servers/boe-server-case/src/main/resources/application-dev.properties index 58a6b802..2f5a4bfe 100644 --- a/servers/boe-server-case/src/main/resources/application-dev.properties +++ b/servers/boe-server-case/src/main/resources/application-dev.properties @@ -1,32 +1,18 @@ -## redis -spring.redis.database=2 -spring.redis.host=127.0.0.1 -spring.redis.password=ENC(zA5LNV8xw3yEx6LMwdGGBGgNsOaD3Cg+) -spring.redis.port=6379 - ## datasource config spring.datasource.driverClassName=com.mysql.jdbc.Driver # spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://127.0.0.1:3306/boe_base3?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/boeu_base?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull spring.datasource.username=root spring.datasource.password=ENC(lAoFOYuc8CAypPtigTNLYg==) logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE -## 静态文件目录,默认是在static下面,以后独立到nginx下面配置 -spring.web.resources.static-locations=file:E:/Projects/BOE/java/static + ## xboe config xboe.api.cross_filter=true -## 上传相磁的路径配置 -xboe.upload.file.temp_path=E:/Projects/BOE/java/static/temp -xboe.upload.file.save_path=E:/Projects/BOE/java/static/upload -xboe.upload.file.http_path=http://localhost:9090/cdn/upload - -## 外部接口调用地址 旧系统机构及用户数据接口 -xboe.externalinterface.url.system=http://localhost:9091 ## 案例接口配置,init 是否需要初始化 xboe.case.sync.init=true diff --git a/servers/boe-server-case/src/main/resources/application-pre.properties b/servers/boe-server-case/src/main/resources/application-pre.properties index 4423487d..76ba2307 100644 --- a/servers/boe-server-case/src/main/resources/application-pre.properties +++ b/servers/boe-server-case/src/main/resources/application-pre.properties @@ -1,9 +1,3 @@ -## redis -spring.redis.database=2 -spring.redis.host=127.0.0.1 -spring.redis.password=ENC(zA5LNV8xw3yEx6LMwdGGBGgNsOaD3Cg+) -spring.redis.port=6379 - ## datasource config spring.datasource.driverClassName=com.mysql.jdbc.Driver # spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver @@ -14,19 +8,10 @@ spring.datasource.password=ENC(lAoFOYuc8CAypPtigTNLYg==) logging.level.org.hibernate.SQL=ERROR # logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE -## 静态文件目录,默认是在static下面,以后独立到nginx下面配置 -spring.web.resources.static-locations=file:E:/Projects/BOE/java/static ## xboe config xboe.api.cross_filter=true -## 上传相磁的路径配置 -xboe.upload.file.temp_path=E:/Projects/BOE/java/static/temp -xboe.upload.file.save_path=E:/Projects/BOE/java/static/upload -xboe.upload.file.http_path=http://localhost:9090/cdn/upload - -## 外部接口调用地址 旧系统机构及用户数据接口 -xboe.externalinterface.url.system=http://localhost:9091 ## 案例接口配置 ## 案例接口配置,init 是否需要初始化 diff --git a/servers/boe-server-case/src/main/resources/application-pro.properties b/servers/boe-server-case/src/main/resources/application-pro.properties index 4423487d..a4b6c6cb 100644 --- a/servers/boe-server-case/src/main/resources/application-pro.properties +++ b/servers/boe-server-case/src/main/resources/application-pro.properties @@ -1,10 +1,6 @@ -## redis -spring.redis.database=2 -spring.redis.host=127.0.0.1 -spring.redis.password=ENC(zA5LNV8xw3yEx6LMwdGGBGgNsOaD3Cg+) -spring.redis.port=6379 - ## datasource config +spring.jpa.show-sql = false +spring.jpa.hibernate.ddl-auto=none spring.datasource.driverClassName=com.mysql.jdbc.Driver # spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/boe_base?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull @@ -14,19 +10,10 @@ spring.datasource.password=ENC(lAoFOYuc8CAypPtigTNLYg==) logging.level.org.hibernate.SQL=ERROR # logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE -## 静态文件目录,默认是在static下面,以后独立到nginx下面配置 -spring.web.resources.static-locations=file:E:/Projects/BOE/java/static ## xboe config xboe.api.cross_filter=true -## 上传相磁的路径配置 -xboe.upload.file.temp_path=E:/Projects/BOE/java/static/temp -xboe.upload.file.save_path=E:/Projects/BOE/java/static/upload -xboe.upload.file.http_path=http://localhost:9090/cdn/upload - -## 外部接口调用地址 旧系统机构及用户数据接口 -xboe.externalinterface.url.system=http://localhost:9091 ## 案例接口配置 ## 案例接口配置,init 是否需要初始化 diff --git a/servers/boe-server-case/src/main/resources/application-test.properties b/servers/boe-server-case/src/main/resources/application-test.properties index 974e46b6..e8b04054 100644 --- a/servers/boe-server-case/src/main/resources/application-test.properties +++ b/servers/boe-server-case/src/main/resources/application-test.properties @@ -1,30 +1,17 @@ -## redis -spring.redis.database=2 -spring.redis.host=127.0.0.1 -spring.redis.password=ENC(zA5LNV8xw3yEx6LMwdGGBGgNsOaD3Cg+) -spring.redis.port=6379 - ## datasource config +spring.jpa.show-sql = false +spring.jpa.hibernate.ddl-auto=none spring.datasource.driverClassName=com.mysql.jdbc.Driver # spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/boe_base?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull spring.datasource.username=boe_base spring.datasource.password=ENC(MaC28GJw2JcbH8Lil0CrqSDTYxX49FJ0rxcmHH2pX0k=) -logging.level.org.hibernate.SQL=DEBUG -logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE ## xboe config xboe.api.cross_filter=true -## 上传相磁的路径配置 -xboe.upload.file.temp_path=/www/wwwroot/file/temp -xboe.upload.file.save_path=/www/wwwroot/file/upload -xboe.upload.file.http_path=http://114.115.162.187/file/upload - -## 外部接口调用地址 旧系统机构及用户数据接口 -xboe.externalinterface.url.system=http://127.0.0.1:9091 ## 案例接口配置 ## 案例接口配置,init 是否需要初始化 diff --git a/servers/boe-server-case/src/main/resources/application.properties b/servers/boe-server-case/src/main/resources/application.properties index 59fd44d4..25721cb4 100644 --- a/servers/boe-server-case/src/main/resources/application.properties +++ b/servers/boe-server-case/src/main/resources/application.properties @@ -31,10 +31,6 @@ spring.servlet.multipart.max-request-size=1024MB ## 静态文件目录,默认是在static下面,以后独立到nginx下面配置 spring.mvc.static-path-pattern=/cdn/** -spring.redis.database=2 -spring.redis.host=127.0.0.1 -spring.redis.password=1Qaz2wsx -spring.redis.port=6379 spring.redis.lettuce.pool.max-active=8 spring.redis.lettuce.pool.min-idle=0 @@ -47,10 +43,10 @@ spring.redis.lettuce.shutdown-timeout=100ms # jpa config spring.jpa.database = MYSQL -spring.jpa.show-sql = true +spring.jpa.show-sql = false # spring.jpa.properties.hibernate.cache.use_second_level_cache=true # spring.jpa.properties.hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory -spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.ddl-auto=none spring.jpa.properties.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect