加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config-dept.yml 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
zqg2233 提交于 2021-06-08 11:18 . update config-dept.yml.
spring:
profiles:
active: dev
---
server:
port: 8001
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
type-aliases-package: com.zqg.springcloud.pojo
mapper-locations: classpath:mybatis/mapper/*.xml
spring:
profiles: dev
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/clouddb03?useUnicode=true&characterEncoding=utf-8
username: root
password: 123456
#eureka
eureka:
client:
service-url: #defaultZone: http://localhost:7001/eureka #集群,注册3个
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept-8001 #修改描述status
prefer-ip-address: true # true访问路径可以显示IP地址
#info
info:
app.name: zqg-springcloud
company.name: www.zqgstudy.com
build.artifactId: ${project.artifactId}
build.version: ${project.version}
#暴露所有端点,解决INFO页面404
management:
endpoints:
web:
exposure:
include: "*"
---
server:
port: 8001
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
type-aliases-package: com.zqg.springcloud.pojo
mapper-locations: classpath:mybatis/mapper/*.xml
spring:
profiles: test
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/clouddb02?useUnicode=true&characterEncoding=utf-8
username: root
password: 123456
#eureka
eureka:
client:
service-url: #defaultZone: http://localhost:7001/eureka #集群,注册3个
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept-8001 #修改描述status
prefer-ip-address: true # true访问路径可以显示IP地址
#info
info:
app.name: zqg-springcloud
company.name: www.zqgstudy.com
build.artifactId: ${project.artifactId}
build.version: ${project.version}
#暴露所有端点,解决INFO页面404
management:
endpoints:
web:
exposure:
include: "*"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化