编译,启动。
配置如下:
spring:
application:
name: druid-admin
main:
allow-bean-definition-overriding: true
cloud:
consul:
enabled: false
host: localhost
port: 8500
discovery:
enable: false
hostname: ${spring.cloud.client.ip-address}
instance-id: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
instance-zone: zone1
nacos:
discovery:
enabled: true
server-addr: 127.0.0.1:8848
eureka:
instance:
preferIpAddress: false
ipAddress: localhost
instance-id: ${eureka.instance.ipAddress}:${server.port}:${spring.application.name}
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
enabled: false
monitor:
#需要监控的服务名spring.application.name
applications: opmaint-lzh
#监控页面的登录用户名和密码
login-username: admin
login-password: 123456
无法监控sql。
出现如下报错:
1条答案
按热度按时间xpszyzbs1#
应该是http请求获取的数据有问题 有个json转换地方报了错