代码拉取完成,页面将自动刷新
spring:
profiles:
active: dev
---
server:
port: 8001
spring:
profiles: dev
application:
name: springcloud-config-provider-emp # 多个均衡服务名称相同
datasource:
type: com.alibaba.druid.pool.DruidDataSource #当前数据源操作类型
driver-class-name: com.mysql.cj.jdbc.Driver #mysql驱动包
url: jdbc:mysql://127.0.0.1:3306/springcloud1?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
# url: jdbc:mysql://127.0.0.1:3306/cloudDB01&serverTimezone=UTC #数据库连接
username: root
password: root
dbcp2:
min-idle: 5 #数据库连接池的最小维持连接数
initial-size: 5 #初始化连接数
max-total: 5 #最大连接数
max-wait-millis: 200 #等待连接获取的最大超时时间
mybatis:
type-aliases-package: api.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml #api实体类所在路径
eureka:
instance:
prefer-ip-address: true # 是否在eureka控制页面Status部分显示IP地址
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
#不配置就是上面的springcloud-provider-emp
client:
service-url:
# defaultZone: http://localhost:7001/eureka/
defaultZone: http://eureka7001:7001/eureka/, http://eureka7002:7002/eureka/, http://eureka7003:7003/eureka/
info:
app.name: ${spring.application.name}
company.name: abc
---
server:
port: 8001
spring:
profiles: test
application:
name: springcloud-config-provider-emp # 多个均衡服务名称相同
datasource:
type: com.alibaba.druid.pool.DruidDataSource #当前数据源操作类型
driver-class-name: com.mysql.cj.jdbc.Driver #mysql驱动包
url: jdbc:mysql://127.0.0.1:3306/springcloud2?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
# url: jdbc:mysql://127.0.0.1:3306/cloudDB01&serverTimezone=UTC #数据库连接
username: root
password: root
dbcp2:
min-idle: 5 #数据库连接池的最小维持连接数
initial-size: 5 #初始化连接数
max-total: 5 #最大连接数
max-wait-millis: 200 #等待连接获取的最大超时时间
mybatis:
type-aliases-package: api.entity
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml #api实体类所在路径
eureka:
instance:
prefer-ip-address: true # 是否在eureka控制页面Status部分显示IP地址
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
#不配置就是上面的springcloud-provider-emp
client:
service-url:
# defaultZone: http://localhost:7001/eureka/
defaultZone: http://eureka7001:7001/eureka/, http://eureka7002:7002/eureka/, http://eureka7003:7003/eureka/
info:
app.name: ${spring.application.name}
company.name: abc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。