代码拉取完成,页面将自动刷新
spring:
profiles:
active: dev
---
# 服务端口号
server:
port: 8001
#mybatis配置
mybatis:
# 配置别名包
type-aliases-package: com.itplq.springcloud.pojo
# 配置mapper.xml文件位置
mapper-locations: classpath:mybatis/mapper/*.xml
# mybatis配置
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.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
username: root
password: 123456
# 配置eureka服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept-8001 # 设置服务实例id
hostname: localhost # 设置主机名
# 导入actuator监控后,可以看到监控信息
info:
app.name: ITPLQ Spring Cloud
company.name: ITPLQ
---
# 服务端口号
server:
port: 8001
#mybatis配置
mybatis:
# 配置别名包
type-aliases-package: com.itplq.springcloud.pojo
# 配置mapper.xml文件位置
mapper-locations: classpath:mybatis/mapper/*.xml
# mybatis配置
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.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud2?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
username: root
password: 123456
# 配置eureka服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/,http://eureka7003.com:7003/eureka/
instance:
instance-id: springcloud-provider-dept-8001 # 设置服务实例id
hostname: localhost # 设置主机名
# 导入actuator监控后,可以看到监控信息
info:
app.name: ITPLQ Spring Cloud
company.name: ITPLQ
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。