1 Star 0 Fork 0

张恒/springcloud-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config-dept.yml 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
张恒 提交于 2021-08-18 09:02 . 4
spring:
profiles:
active: dev
---
server:
port: 8001
# mybatis配置
mybatis:
type-aliases-package: com.zhang.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/db03?useUnicode=true&characterEncoding=utf-8
username: root
password: root
#Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept8001 # 修改eureka上的默认描述信息!
prefer-ip-address: false #设置为true可以显示服务的IP地址
#info 配置
info:
app.name: zhang-springcloud
company.name: www.hxsd.com
---
server:
port: 8001
# mybatis配置
mybatis:
type-aliases-package: com.zhang.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?useUnicode=true&characterEncoding=utf-8
username: root
password: root
#Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept8001 # 修改eureka上的默认描述信息!
prefer-ip-address: false #设置为true可以显示服务的IP地址
#info 配置
info:
app.name: zhang-springcloud
company.name: www.hxsd.com
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangHeng99/springcloud-config.git
git@gitee.com:zhangHeng99/springcloud-config.git
zhangHeng99
springcloud-config
springcloud-config
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385