加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
microservice-config-dept-client2.yml 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
dongzhangjun 提交于 2019-06-02 16:32 . s
spring:
profiles:
active:
- dev
---
server:
port: 8002
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml
type-aliases-package: com.dong.cloud.cloud.bean
mapper-locations:
- classpath:mybatis/mapper/**/*.xml
spring:
profiles: dev
application:
name: microservice-dept #显示名称
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloud02?useSSL=false
username: root
password: root
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
eureka:
client:
service-url:
defaultZone: http://eureka1:7007/eureka/,http://eureka2:7008/eureka/,http://eureka3:7009/eureka/
instance:
instance-id: microservice-dept-8002 # 显示别名
prefer-ip-address: true # 访问路径可以显示ip
# info 显示信息
info:
app.name: microservice-cloud
company.name: www.dong
build.artifactId: $project.artifactId$
build.version: $project.version$
---
server:
port: 8002
mybatis:
config-location: classpath:mybatis/mybatis.cfg.xml
type-aliases-package: com.dong.cloud.cloud.bean
mapper-locations:
- classpath:mybatis/mapper/**/*.xml
spring:
profiles: test
application:
name: microservice-dept #显示名称
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/cloud03?useSSL=false
username: root
password: root
dbcp2:
min-idle: 5
initial-size: 5
max-total: 5
max-wait-millis: 200
eureka:
client:
service-url:
defaultZone: http://eureka1:7007/eureka/,http://eureka2:7008/eureka/,http://eureka3:7009/eureka/
instance:
instance-id: microservice-dept-8002 # 显示别名
prefer-ip-address: true # 访问路径可以显示ip
# info 显示信息
info:
app.name: microservice-cloud
company.name: www.dong
build.artifactId: $project.artifactId$
build.version: $project.version$
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化