方案一、将前端页面通过Nginx反向代理部署为https,避免http访问https出现的跨域问题 方案二、将前端打包后的dist文件放到springboot项目的静态资源目录static下,配置文件添加如下配置即可解决: server: port: 9088 spring: boot: admin: ui: public-url: https://localhost