mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
fix: 启动失败, springboot admin 无法识别主机名
This commit is contained in:
parent
507f55f3c9
commit
f15414bf69
@ -7,7 +7,7 @@ spring:
|
|||||||
# 数据源配置项 TODO 多数据源;TODO 监控配置
|
# 数据源配置项 TODO 多数据源;TODO 监控配置
|
||||||
datasource:
|
datasource:
|
||||||
name: ruoyi-vue-pro
|
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
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: 123456
|
||||||
@ -98,6 +98,8 @@ spring:
|
|||||||
# Spring Boot Admin Client 客户端的相关配置
|
# Spring Boot Admin Client 客户端的相关配置
|
||||||
client:
|
client:
|
||||||
url: http://127.0.0.1:${server.port}/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址
|
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 服务端的相关配置
|
# Spring Boot Admin Server 服务端的相关配置
|
||||||
context-path: /admin # 配置 Spring
|
context-path: /admin # 配置 Spring
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user