配置文件优化

This commit is contained in:
tanghc
2019-07-18 15:28:48 +08:00
parent fce0b4d242
commit 167d0a77f7
18 changed files with 12 additions and 275 deletions

View File

@@ -103,14 +103,7 @@
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-commons</artifactId>
<version>2.1.0.RELEASE</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<plugins>

View File

@@ -41,7 +41,7 @@ easyopen.ignore-validate=true
registry.eureka-server-addr=${eureka.url}
registry.nacos-server-addr=${nacos.url}
# 使用eurekaeureka使用nacos填nacos
registry.name=eureka
registry.name=nacos
logging.level.com.gitee=debug

View File

@@ -1,61 +0,0 @@
server:
port: 8082
# token过期时间分钟
admin:
access-token:
timeout-minutes: 30
sop:
# 签名方式rsa支付宝开放平台签名方式md5淘宝开放平台签名方式
sign-type: rsa
# 不用改
spring:
application:
name: sop-admin
cloud:
# zookeeper地址根据实际情况修改
zookeeper:
connect-string: localhost:2181
baseSleepTimeMs: 3000
maxRetries: 3
# 数据源
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
username: root
password: root
# 固定不用改
easyopen:
show-doc: true
ignore-validate: true
# 注册中心地址,根据实际情况改,这里只是参数,并不会去注册
registry:
eureka-server-addr: http://localhost:1111/eureka/
# nacos服务器地址
nacos-server-addr: 127.0.0.1:8848
# 使用eurekaeureka使用nacos填nacos
name: nacos
# 根据实际情况改
logging:
level:
com:
gitee: debug
# 不用改
mybatis:
fill: {com.gitee.fastmybatis.core.support.DateFillInsert: gmt_create,
com.gitee.fastmybatis.core.support.DateFillUpdate: gmt_modified}
# 不用改,如果要改,请全局替换修改
zuul:
secret: MZZOUSTua6LzApIWXCwEgbBmxSzpzC

View File

@@ -1,3 +0,0 @@
spring:
profiles:
active: dev