1 Star 0 Fork 0

tiankyl / spring-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
user-dev.yml 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/tkyl/spring-config.git
git@gitee.com:tkyl/spring-config.git
tkyl
spring-config
spring-config
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891