Merge pull request #4 from yuyong725/master

fix: 启动失败, springboot admin 无法识别主机名
This commit is contained in:
芋道源码 2021-02-22 20:05:41 +08:00 committed by GitHub
commit 3bf4588631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ spring:
# 数据源配置项 TODO 多数据源TODO 监控配置
datasource:
name: ruoyi-vue-pro
url: jdbc:mysql://127.0.1:33061/${spring.datasource.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
@ -98,6 +98,8 @@ spring:
# Spring Boot Admin Client 客户端的相关配置
client:
url: http://127.0.0.1:${server.port}/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址
instance:
prefer-ip: true
# Spring Boot Admin Server 服务端的相关配置
context-path: /admin # 配置 Spring