代码拉取完成,页面将自动刷新
server:
port: ${port:9001}
spring:
application:
name: user-service # 服务名称,名称不能写下划线
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/springcloud?useUnicode=true&characterEncoding=utf-8
username: root
password: mysql
mybatis-plus:
type-aliases-package: com.yang.pojo # 实体别名包扫描
configuration:
map-underscore-to-camel-case: true # 驼峰命名
mapper-locations: classpath:mappers/*.xml # 扫描Mapper映射文件
logging:
level:
com.yang: debug # 修改日志级别为debug
# 配置注册地址
eureka:
instance:
ip-address: 127.0.0.1 # ip地址
prefer-ip-address: true # 更倾向于使用ip,而不是host名称
lease-renewal-interval-in-seconds: 30 # 服务续约(renew)的间隔时间,默认为30秒
lease-expiration-duration-in-seconds: 90 # 服务失效时间,默认值90秒
client:
service-url:
defaultZone: http://127.0.0.1:8761/eureka,http://127.0.0.1:8762/eureka
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。