1. 打开工具栏的【run】,找到【Edit Configurations…】 2. 此处以我的Tomcat为例,找到【Deployment】,把下方【Application context】处清除即可删除不必要的上下文路径,便于开发。