1 Star 0 Fork 0

秦洪杰/springcloud-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-dept.yml 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
秦洪杰 提交于 2021-04-08 23:39 . 3
spring:
profiles:
active: dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.qhj.springcloud.pojo
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
#spring配置
spring:
profiles: dev
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://localhost:3306/db01?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root
password: root
#Eureka
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: springcloud-provider-dept-8001 #修改eureka上的默认描述信息!
prefer-ip-address: true #显示服务ip地址,false不显示,true显示
#info设置
info:
app.name: qin-springcloud
company.name: blog.qhj.com
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.qhj.springcloud.pojo
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
#spring配置
spring:
profiles: test
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://localhost:3306/db02?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root
password: root
#Eureka
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/
instance:
instance-id: springcloud-provider-dept-8001 #修改eureka上的默认描述信息!
prefer-ip-address: true #显示服务ip地址,false不显示,true显示
#info设置
info:
app.name: qin-springcloud
company.name: blog.qhj.com
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/qin-hongjie/springcloud-config.git
git@gitee.com:qin-hongjie/springcloud-config.git
qin-hongjie
springcloud-config
springcloud-config
master

搜索帮助