加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-provider.yml 6.75 KB
一键复制 编辑 原始数据 按行查看 历史
孑小白 提交于 2022-09-09 11:24 . 更新config-provider.yml
#当前的服务名称
spring:
profiles:
active: dev #激活dev配置环境
---
server:
port: 8001
spring:
profiles: dev_8001
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
---
server:
port: 8001
spring:
profiles: test_8001
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config_test
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
---
server:
port: 8002
spring:
profiles: dev_8002
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud02?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
---
server:
port: 8002
spring:
profiles: test_8002
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud02?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config_test
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
---
server:
port: 8003
spring:
profiles: dev_8003
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud02?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
---
server:
port: 8003
spring:
profiles: test_8003
datasource:
type: com.alibaba.druid.pool.DruidDataSource
password: root
username: root
url: jdbc:mysql://localhost:3306/study_springcloud03?useSSL=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: org.gjt.mm.mysql.Driver
application:
name: springcloud_provider_config_test
#Mybaits
mybatis:
type-aliases-package: cn.jdx.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
# Eureka 配置: 将此服务注册到7001端口的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_config
hostname: localhost #修改默认链接地址(机器名称)
# 随意添加的配置信息
info:
app.name: aigamejxb.cn
company.name: Ailiyun
#引入 actuator 组件:需要声明导出的接口
management:
endpoints:
web:
exposure:
exclude: "*"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化