因为对监控页面有不一样的需求,所以要对页面进行二次开发,在这里记录一下其中遇到的问题。
下载源码以及如何修改打包应用可参考下列文章
Spring Boot Admin系列(4)-自定义开发UI界面_springboot的ui界面好改吗_云烟成雨TD的博客-CSDN博客
我的页面更改
修改页面位置
项目运行需注意的点
1. 先运行前端,使用npm run watch
2. 运行后端
顺序不对可能会报错org.thymeleaf.exceptions.TemplateInputException: Error resolving template。解决:重新clean一下,按照1,2顺序运行
搭建环境时遇到的错误,错误原因没有及时截图下来,所以只能口头描述了
(1) npm版本问题。进行npm install时有依赖下载失败,极有可能是npm版本过高引起的,降低一下npm版本试试。
npm i 报错 npm ERR code 1_npm err! code 1_zjslan_js的博客-CSDN博客
(2) 项目中运行报错 npm install gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2
参考链接:https://www.cnblogs.com/init-007/p/17193786.html
(3) 打包时报错Unknown lifecycle phase ".test.skip=true". You must specify a valid lifecycle phase or a goal in the format
(4)打包时丢失html等文件
参考链接:
https://www.cnblogs.com/testopsfeng/p/15384704.html
(5)打包时报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0_享受旅行中的VIP快乐的博客-CSDN博客