IDEA修改web项目访问路径

在这里插入图片描述

想要修改上面地址栏的url,即修改web项目的访问路径
如下操作

Run---->Edit Configurations

在这里插入图片描述

Deployment--->修改Application context的内容
再按一下Apply

Application context格式:/你想输入的东西


Application context是web项目的路径名

在这里插入图片描述

Application context修改完之后
前面的URL会自动修改

在这里插入图片描述

这样就好了!!!

猜你喜欢

转载自blog.csdn.net/m0_52041525/article/details/123381293