1 Star 0 Fork 0

魏冬东/springcloud-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-dept.yml 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
冰糖葫芦娃 提交于 2020-07-17 17:26 +08:00 . update config-dept.yml.
spring:
profiles:
active: dev
---
server:
port: 8001
spring:
profiles: dev
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver #org.gjt.mm.mysql.Driver或者com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/scdb03?useSSL=false&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
username: root
password: 123456
#mybatis配置
mybatis:
type-aliases-package: cn.kgc.pojo
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
#Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
# 发布到集群,三个eureka注册中心
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springboot-provader-dept8001
#info配置
info:
app-name: kuangshen-springcloud
company.name: blog.kuangstudy.com
---
server:
port: 8001
spring:
profiles: test
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver #org.gjt.mm.mysql.Driver或者com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/scdb02?useSSL=false&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
username: root
password: 123456
#mybatis配置
mybatis:
type-aliases-package: cn.kgc.pojo
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
#Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
# 发布到集群,三个eureka注册中心
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springboot-provader-dept8001
#info配置
info:
app-name: kuangshen-springcloud
company.name: blog.kuangstudy.com
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wei_dongdong/springcloud-config.git
git@gitee.com:wei_dongdong/springcloud-config.git
wei_dongdong
springcloud-config
springcloud-config
master

搜索帮助