解决方法: spring boot admin设置配置: spring.boot.admin.ui.public-url: http://xxx.xx.xxx.xxx:xxxx/ 这个地址就是你ngnix代理的ip和端口