diff --git a/bushu/config.properties b/bushu/config.properties new file mode 100644 index 0000000..623700f --- /dev/null +++ b/bushu/config.properties @@ -0,0 +1 @@ +config.file=classpath:/application_local.yml,${CONFIG_FILE:config/app.properties} diff --git a/bushu/config/app.properties b/bushu/config/app.properties new file mode 100644 index 0000000..35f9101 --- /dev/null +++ b/bushu/config/app.properties @@ -0,0 +1,128 @@ +#extend config +spring.application.name=bizsvr +server.port=11089 + +logging.config=logback-spring.xml + +#instance.ip=127.0.0.1 +# 配置中心url +server.servlet.context-path=/api/bizsvr +#server.servlet.context-path=/ +server.tomcat.uri-encoding=UTF-8 +server.tomcat.accept-count=1000 +server.tomcat.threads.max=800 +server.tomcat.threads.min-spare=100 + +#undertow +server.undertow.direct-buffers=true +server.undertow.threads.io=8 +server.undertow.threads.worker=258 + +#DataSource +spring.datasource.type=com.alibaba.druid.pool.DruidDataSource +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.url=jdbc:mysql://rm-uf61f7vi74nqis6q6fo.mysql.rds.aliyuncs.com:3306/tnuat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://192.168.88.23:31306/tnuat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +spring.datasource.username=tnuat +spring.datasource.password=Tnuat123#@! + +#spring.datasource.url=jdbc:mysql://192.168.88.58:3307/tnemis?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +#spring.datasource.username=xdadan +#spring.datasource.password=xdadan123#@! +##spring.datasource.password=XDDENC#ukKw8FenW3YMeSQPlar5Y+PGpb+VgonP + + +spring.datasource.druid.initialSize=5 +spring.datasource.druid.minIdle=10 +spring.datasource.druid.maxActive=20 +spring.datasource.druid.maxWait=60000 +spring.datasource.druid.timeBetweenEvictionRunsMillis=60000 +spring.datasource.druid.minEvictableIdleTimeMillis=300000 +spring.datasource.druid.maxEvictableIdleTimeMillis=900000 +spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL +spring.datasource.druid.testWhileIdle=true +spring.datasource.druid.testOnBorrow=false +spring.datasource.druid.testOnReturn=false +spring.datasource.druid.webStatFilter.enabled=true +spring.datasource.druid.statViewServlet.enabled=true +spring.datasource.druid.statViewServlet.allow.url-pattern=/druid/* +spring.datasource.druid.statViewServlet.allow.login-username=xdadan +spring.datasource.druid.statViewServlet.allow.login-password=123456 +spring.datasource.druid.filter.stat.enabled=true +spring.datasource.druid.filter.stat.log-slow-sql=true +spring.datasource.druid.filter.stat.slow-sql-millis=1000 +spring.datasource.druid.filter.stat.merge-sql=true +spring.datasource.druid.filter.wall.config.multi-statement-allow=true + + +spring.datasource.max-wait=30000 +spring.datasource.max-active=200 +spring.datasource.initial-size=20 +spring.datasource.max-idle=20 +spring.datasource.min-idle=10 +spring.datasource.test-on-borrow=true +spring.datasource.test-while-idle=true +spring.datasource.validationQuery=select 1 from dual +spring.datasource.connection-test-query=select 1 from dual + + +#redis +spring.redis.database=0 +spring.redis.host=192.168.88.58 +#spring.redis.cluster.nodes=192.168.88.58 +spring.redis.port=6379 +spring.redis.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +spring.redis.pool.max-active=8 +spring.redis.pool.max-wait=-1 +spring.redis.pool.max-idle=8 +spring.redis.pool.min-idle=0 +spring.redis.timeout=10s +spring.redis.lettuce.pool.min-idle=0 +spring.redis.lettuce.pool.max-idle=8 +spring.redis.lettuce.pool.max-active=8 +spring.redis.lettuce.pool.max-wait=-1ms + +redisson.address=redis://192.168.88.58:6379 +redisson.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +redisson.timeout=3000 +redisson.database=0 +redisson.connectionPoolSize=10 +redisson.connectionMinimumIdleSize=10 + +#rabbitmq +spring.rabbitmq.host=192.168.88.57 +spring.rabbitmq.port=5672 +spring.rabbitmq.username=ccloud +spring.rabbitmq.password=123#@! +spring.rabbitmq.virtual-host=/pushcus +# 是否启动mq监听 +mq.isStartListener=true + + +#DXP001_SEND + +#MVC +spring.mvc.static-path-pattern=/** +#spring.resources.static-locations = classpath:/templates/,classpath:/resources/,classpath:/static/,classpath:/html/ +spring.resources.static-locations=classpath:/static/,classpath:/html/ +spring.mvc.view.prefix=/WEB-INF/views/ +spring.mvc.view.suffix=.jsp + +spring.http.multipart.maxFileSize=10000Mb +spring.http.multipart.maxRequestSize=10000Mb + +pay.temp.dir=tmp +pay.profile=. + +xdd.enc.key= +#X20230103080 + +pay.api-online-url=https://papi.tanex56.com/router/online +pay.app-id=26150000179 +pay.app-secret=91be0b54ba41f71f8e0506a7da95a8ff + +erp.api.base-url=https://api-emis.tanex56.com/api/bizsvr +erp.api.pay.notify-url=https://api-emis.tanex56.com/api/bizsvr/common/payNotifyCallback + +system.fontPath=/usr/share/fonts + diff --git a/bushu/config/app_dev.properties b/bushu/config/app_dev.properties new file mode 100644 index 0000000..d9755eb --- /dev/null +++ b/bushu/config/app_dev.properties @@ -0,0 +1,135 @@ +#extend config +spring.application.name=bizsvr +server.port=11089 + +logging.config=logback-spring.xml + +#instance.ip=127.0.0.1 +# \u914D\u7F6E\u4E2D\u5FC3url +server.servlet.context-path=/api/bizsvr +#server.servlet.context-path=/ +server.tomcat.uri-encoding=UTF-8 +server.tomcat.accept-count=1000 +server.tomcat.threads.max=800 +server.tomcat.threads.min-spare=100 + +#undertow +server.undertow.direct-buffers=true +server.undertow.threads.io=8 +server.undertow.threads.worker=258 + +#DataSource +spring.datasource.type=com.alibaba.druid.pool.DruidDataSource +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.url=jdbc:mysql://rm-uf61f7vi74nqis6q6fo.mysql.rds.aliyuncs.com:3306/tnuat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://localhost:3306/tunat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true +spring.datasource.username=root +spring.datasource.password=335453955 + +#spring.datasource.url=jdbc:mysql://192.168.88.58:3307/tnemis?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +#spring.datasource.username=xdadan +#spring.datasource.password=xdadan123#@! +##spring.datasource.password=XDDENC#ukKw8FenW3YMeSQPlar5Y+PGpb+VgonP + + +spring.datasource.druid.initialSize=5 +spring.datasource.druid.minIdle=10 +spring.datasource.druid.maxActive=20 +spring.datasource.druid.maxWait=60000 +spring.datasource.druid.timeBetweenEvictionRunsMillis=60000 +spring.datasource.druid.minEvictableIdleTimeMillis=300000 +spring.datasource.druid.maxEvictableIdleTimeMillis=900000 +spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL +spring.datasource.druid.testWhileIdle=true +spring.datasource.druid.testOnBorrow=false +spring.datasource.druid.testOnReturn=false +spring.datasource.druid.webStatFilter.enabled=true +spring.datasource.druid.statViewServlet.enabled=true +spring.datasource.druid.statViewServlet.allow.url-pattern=/druid/* +spring.datasource.druid.statViewServlet.allow.login-username=xdadan +spring.datasource.druid.statViewServlet.allow.login-password=123456 +spring.datasource.druid.filter.stat.enabled=true +spring.datasource.druid.filter.stat.log-slow-sql=true +spring.datasource.druid.filter.stat.slow-sql-millis=1000 +spring.datasource.druid.filter.stat.merge-sql=true +spring.datasource.druid.filter.wall.config.multi-statement-allow=true + + +spring.datasource.max-wait=30000 +spring.datasource.max-active=200 +spring.datasource.initial-size=20 +spring.datasource.max-idle=20 +spring.datasource.min-idle=10 +spring.datasource.test-on-borrow=true +spring.datasource.test-while-idle=true +spring.datasource.validationQuery=select 1 from dual +spring.datasource.connection-test-query=select 1 from dual + + +#redis +spring.redis.database=0 +spring.redis.host=127.0.0.1 +#spring.redis.cluster.nodes=192.168.88.58 +spring.redis.port=6379 +#spring.redis.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +spring.redis.pool.max-active=8 +spring.redis.pool.max-wait=-1 +spring.redis.pool.max-idle=8 +spring.redis.pool.min-idle=0 +spring.redis.timeout=100s +spring.redis.lettuce.pool.min-idle=30 +spring.redis.lettuce.pool.max-idle=10 +spring.redis.lettuce.pool.max-active=30 +spring.redis.lettuce.pool.max-wait=10000 + +redisson.address=redis://127.0.0.1:6379 +#redisson.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +redisson.timeout=3000 +redisson.database=0 +redisson.connectionPoolSize=10 +redisson.connectionMinimumIdleSize=10 + +#rabbitmq +spring.rabbitmq.host=127.0.0.1 +spring.rabbitmq.port=5672 +spring.rabbitmq.username=guest +spring.rabbitmq.password=guest +spring.rabbitmq.virtual-host=/pushcus +# \u662F\u542F\u52A8mq\u76D1\u542C +mq.isStartListener=true + + +#DXP001_SEND + +#MVC +spring.mvc.static-path-pattern=/** +#spring.resources.static-locations = classpath:/templates/,classpath:/resources/,classpath:/static/,classpath:/html/ +spring.resources.static-locations=classpath:/static/,classpath:/html/ +spring.mvc.view.prefix=/WEB-INF/views/ +spring.mvc.view.suffix=.jsp + +spring.http.multipart.maxFileSize=10000Mb +spring.http.multipart.maxRequestSize=10000Mb + +pay.temp.dir=tmp +pay.profile=. + +xdd.enc.key= +#X20230103080 + +pay.api-online-url=http://api.pay.xdadan.com/api/gateway/router/online +pay.app-id=26150000179 +pay.app-secret=91be0b54ba41f71f8e0506a7da95a8ff + +erp.api.base-url=http://api.erp2.xdadan.com/api/microsvr +erp.api.pay.notify-url=http://api.erp2.xdadan.com/api/microsvr/common/payNotifyCallback + +system.fontPath=/usr/share/fonts + +xss.excludes=/system/notice +xss.urlPatterns=/system/*,/monitor/*,/tool/* + +token.header=X-Token +token.secret=10942fd6f30d45a567e7ec84b18f9ca7c1 +token.expireTime=4320 + diff --git a/bushu/config/app_sit.properties b/bushu/config/app_sit.properties new file mode 100644 index 0000000..4ab2960 --- /dev/null +++ b/bushu/config/app_sit.properties @@ -0,0 +1,128 @@ +#extend config +spring.application.name=bizsvr +server.port=11089 + +logging.config=logback-spring.xml + +#instance.ip=127.0.0.1 +# 配置中心url +server.servlet.context-path=/api/bizsvr +#server.servlet.context-path=/ +server.tomcat.uri-encoding=UTF-8 +server.tomcat.accept-count=1000 +server.tomcat.threads.max=800 +server.tomcat.threads.min-spare=100 + +#undertow +server.undertow.direct-buffers=true +server.undertow.threads.io=8 +server.undertow.threads.worker=258 + +#DataSource +spring.datasource.type=com.alibaba.druid.pool.DruidDataSource +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.url=jdbc:mysql://rm-uf61f7vi74nqis6q6fo.mysql.rds.aliyuncs.com:3306/tnuat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://192.168.88.23:31306/tnuat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +spring.datasource.username=tnuat +spring.datasource.password=Tnuat123#@! + +#spring.datasource.url=jdbc:mysql://192.168.88.58:3307/tnemis?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +#spring.datasource.username=xdadan +#spring.datasource.password=xdadan123#@! +##spring.datasource.password=XDDENC#ukKw8FenW3YMeSQPlar5Y+PGpb+VgonP + + +spring.datasource.druid.initialSize=5 +spring.datasource.druid.minIdle=10 +spring.datasource.druid.maxActive=20 +spring.datasource.druid.maxWait=60000 +spring.datasource.druid.timeBetweenEvictionRunsMillis=60000 +spring.datasource.druid.minEvictableIdleTimeMillis=300000 +spring.datasource.druid.maxEvictableIdleTimeMillis=900000 +spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL +spring.datasource.druid.testWhileIdle=true +spring.datasource.druid.testOnBorrow=false +spring.datasource.druid.testOnReturn=false +spring.datasource.druid.webStatFilter.enabled=true +spring.datasource.druid.statViewServlet.enabled=true +spring.datasource.druid.statViewServlet.allow.url-pattern=/druid/* +spring.datasource.druid.statViewServlet.allow.login-username=xdadan +spring.datasource.druid.statViewServlet.allow.login-password=123456 +spring.datasource.druid.filter.stat.enabled=true +spring.datasource.druid.filter.stat.log-slow-sql=true +spring.datasource.druid.filter.stat.slow-sql-millis=1000 +spring.datasource.druid.filter.stat.merge-sql=true +spring.datasource.druid.filter.wall.config.multi-statement-allow=true + + +spring.datasource.max-wait=30000 +spring.datasource.max-active=200 +spring.datasource.initial-size=20 +spring.datasource.max-idle=20 +spring.datasource.min-idle=10 +spring.datasource.test-on-borrow=true +spring.datasource.test-while-idle=true +spring.datasource.validationQuery=select 1 from dual +spring.datasource.connection-test-query=select 1 from dual + + +#redis +spring.redis.database=0 +spring.redis.host=127.0.0.1 +#spring.redis.cluster.nodes=192.168.88.58 +spring.redis.port=6379 +#spring.redis.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +spring.redis.pool.max-active=8 +spring.redis.pool.max-wait=-1 +spring.redis.pool.max-idle=8 +spring.redis.pool.min-idle=0 +spring.redis.timeout=100s +spring.redis.lettuce.pool.min-idle=30 +spring.redis.lettuce.pool.max-idle=10 +spring.redis.lettuce.pool.max-active=30 +spring.redis.lettuce.pool.max-wait=10000 + +redisson.address=redis://127.0.0.1:6379 +#redisson.password=TNL9910Aksd&5$(((*sd88sdsds99asdsa8 +redisson.timeout=3000 +redisson.database=0 +redisson.connectionPoolSize=10 +redisson.connectionMinimumIdleSize=10 + +#rabbitmq +spring.rabbitmq.host=192.168.88.57 +spring.rabbitmq.port=5672 +spring.rabbitmq.username=ccloud +spring.rabbitmq.password=123#@! +spring.rabbitmq.virtual-host=/pushcus +# 是否启动mq监听 +mq.isStartListener=true + + +#DXP001_SEND + +#MVC +spring.mvc.static-path-pattern=/** +#spring.resources.static-locations = classpath:/templates/,classpath:/resources/,classpath:/static/,classpath:/html/ +spring.resources.static-locations=classpath:/static/,classpath:/html/ +spring.mvc.view.prefix=/WEB-INF/views/ +spring.mvc.view.suffix=.jsp + +spring.http.multipart.maxFileSize=10000Mb +spring.http.multipart.maxRequestSize=10000Mb + +pay.temp.dir=tmp +pay.profile=. + +xdd.enc.key= +#X20230103080 + +pay.api-online-url=https://papi.tanex56.com/router/online +pay.app-id=26150000179 +pay.app-secret=91be0b54ba41f71f8e0506a7da95a8ff + +erp.api.base-url=https://api-emis.tanex56.com/api/bizsvr +erp.api.pay.notify-url=https://api-emis.tanex56.com/api/bizsvr/common/payNotifyCallback + +system.fontPath=/usr/share/fonts + diff --git a/pom.xml b/pom.xml index 392b95f..ec8fa3e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - + com.xdadan emis 1.0.0 @@ -11,7 +11,7 @@ emis-server http://www.tanex56.com emis-server - + 1.0.0 UTF-8 @@ -238,6 +238,14 @@ true + + + + + + + + @@ -254,4 +262,17 @@ - \ No newline at end of file + + + + + + + + + + + + + + diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..dfa03eb --- /dev/null +++ b/settings.xml @@ -0,0 +1,30 @@ + + + + + + + releases + admin + 335453955 + + + snapshots + admin + 335453955 + + + + + + + aliyunmaven + external:*,!releases,!snapshots + Aliyun Maven + https://maven.aliyun.com/repository/public + + + +