代码拉取完成,页面将自动刷新
spring:
profiles:
active: dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.lemon.springcloud.pojo
config-location: classpath:mybatis-config.xml
mapper-locations: classpath:exercise/mapper/*.xml
#spring的配置
spring:
profiles: dev
application:
name: SpringCloud-provide-department
#数据源的配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源为druid
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?serverTimezone=UTC&rewriteBatchedStatements=true
username: root
password: 123456
#Eureka客户端配置
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/,http://eureka7002.com:7002/eureka/
instance:
#修改Eureka中status的默认描述信息。不配置默认为DESKTOP-XXX描述
instance-id: springcloud-provider-dept8001-hystrix
appname: SPRINGCLOUD-PROVIDE-DEPARTMENT
hostname: localhost
# 隐藏ip
prefer-ip-address: false
info:
app.name: 8001-DepartmentProvider-SunGuiWen
company.name: yunxiang # 公司部门名
test.name: Department-dev
---
server:
port: 8001
#mybatis配置
mybatis:
type-aliases-package: com.lemon.springcloud.pojo
config-location: classpath:mybatis-config.xml
mapper-locations: classpath:exercise/mapper/*.xml
#spring的配置
spring:
profiles: test
application:
name: SpringCloud-provide-department
#数据源的配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource #数据源为druid
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?serverTimezone=UTC&rewriteBatchedStatements=true
username: root
password: 123456
#Eureka客户端配置
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7003.com:7003/eureka/,http://eureka7002.com:7002/eureka/
instance:
#修改Eureka中status的默认描述信息。不配置默认为DESKTOP-XXX描述
instance-id: springcloud-provider-dept8001-hystrix-test
appname: SPRINGCLOUD-PROVIDE-DEPARTMENT
hostname: localhost
# 隐藏ip
prefer-ip-address: false
info:
app.name: 8001-DepartmentProvider-SunGuiWen
company.name: yunxiang # 公司部门名
test.name: Department-test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。