参考此篇博客: https://www.cnblogs.com/wfhking/p/9395774.html 补充: tomcat启动配置:run->edit configuration 项目访问的前缀设置