mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
配置文件优化
This commit is contained in:
@@ -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>
|
||||
|
@@ -41,7 +41,7 @@ easyopen.ignore-validate=true
|
||||
registry.eureka-server-addr=${eureka.url}
|
||||
registry.nacos-server-addr=${nacos.url}
|
||||
# 使用eureka,填:eureka,使用nacos填:nacos
|
||||
registry.name=eureka
|
||||
registry.name=nacos
|
||||
|
||||
logging.level.com.gitee=debug
|
||||
|
||||
|
@@ -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
|
||||
# 使用eureka,填:eureka,使用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
|
@@ -1,3 +0,0 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
Reference in New Issue
Block a user