idea开发jsp页面无法实时更新的解决办法

最近在开发的时候就遇到了这样的问题,maven打包,tomcat启动,一切正常。

但在开发过程中修改文件是很普通的一件事,尤其jsp的ui调试,此时就碰到这个问题,每次修改一点jsp都得重新打包部署一次。

网上搜索了一下,找到了如下解决方案。

修改Run/Debug Configurations

On ‘Update’ Action:update class and resources

On frame deactivation:update class and resources

可能有些人在这里没有update class and resources这个选项,不用急,先转到Deployment页

将xxx:war部署模式改为xxx:war exploded模式

xxx:war exploded 展开部署,先将资源文件展开,再部署
xxx:war 发布模式,先打成war包,再部署

再返回前页就可以选择update class and resources了。
 

猜你喜欢

转载自blog.csdn.net/educast/article/details/88798639