1 Star 0 Fork 0

毛毛 / springcloud-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config-dept.yml 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
wy 提交于 2020-10-01 23:22 . 添加8001和eureka配置
spring:
profiles:
active: dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.yan.springcloud.pojo
mapper-locations: classpath:mybatis/mapper/*.xml
config-location: classpath:mybatis/mybatis-config.xml
#spring配置
spring:
profiles: dev
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/db01?useUnicode=true&characterEncoding=utf-8
username: root
password: 123456
#Eureka配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept8001
prefer-ip-address: true
info:
app.name: yan-springcloud
company.name: blog.yan.study.com
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.yan.springcloud.pojo
mapper-locations: classpath:mybatis/mapper/*.xml
config-location: classpath:mybatis/mybatis-config.xml
#spring配置
spring:
profiles: test
application:
name: springcloud-config-dept
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/db02?useUnicode=true&characterEncoding=utf-8
username: root
password: 123456
#Eureka配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept8001
prefer-ip-address: true
info:
app.name: yan-springcloud
company.name: blog.yan.study.com
Java
1
https://gitee.com/maomaoacf/springcloud-config.git
git@gitee.com:maomaoacf/springcloud-config.git
maomaoacf
springcloud-config
springcloud-config
master

搜索帮助