1 Star 0 Fork 0

孙桂文/springcloud-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-provide.yml 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
孙桂文 提交于 2022-07-12 09:01 . three
spring:
profiles:
active: dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.lemon.springcloud.pojo
config-location: classpath:mybatis-config.xml
mapper-locations: classpath:exercise/mapper/*.xml
#spring的配置
spring:
profiles: dev
application:
name: SpringCloud-provide-department
#数据源的配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源为druid
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?serverTimezone=UTC&rewriteBatchedStatements=true
username: root
password: 123456
#Eureka客户端配置
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/,http://eureka7002.com:7002/eureka/
instance:
#修改Eureka中status的默认描述信息。不配置默认为DESKTOP-XXX描述
instance-id: springcloud-provider-dept8001-hystrix
appname: SPRINGCLOUD-PROVIDE-DEPARTMENT
hostname: localhost
# 隐藏ip
prefer-ip-address: false
info:
app.name: 8001-DepartmentProvider-SunGuiWen
company.name: yunxiang # 公司部门名
test.name: Department-dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.lemon.springcloud.pojo
config-location: classpath:mybatis-config.xml
mapper-locations: classpath:exercise/mapper/*.xml
#spring的配置
spring:
profiles: test
application:
name: SpringCloud-provide-department
#数据源的配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源为druid
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?serverTimezone=UTC&rewriteBatchedStatements=true
username: root
password: 123456
#Eureka客户端配置
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/,http://eureka7002.com:7002/eureka/
instance:
#修改Eureka中status的默认描述信息。不配置默认为DESKTOP-XXX描述
instance-id: springcloud-provider-dept8001-hystrix-test
appname: SPRINGCLOUD-PROVIDE-DEPARTMENT
hostname: localhost
# 隐藏ip
prefer-ip-address: false
info:
app.name: 8001-DepartmentProvider-SunGuiWen
company.name: yunxiang # 公司部门名
test.name: Department-test
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/sun_wei_wen/springcloud-config.git
git@gitee.com:sun_wei_wen/springcloud-config.git
sun_wei_wen
springcloud-config
springcloud-config
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385