Source code does not match the bytecode

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38508261/article/details/78021219

最近开始使用idea
因为其强大的功能而抛弃了最喜欢的eclipse,使用时遇到了很多问题,择其中一些分享给大家:
使用idea时,有很方便的一点就是在对java类文件改动时不需要重新部署debug,而没有点击debug中的restart时,就会出现在Source code does not match the bytecode;
因此,类文件有所改动时,需要点击如下图
这里写图片描述
点击OK即相当于重新部署
此时就不会出现Source code does not match the bytecode.

猜你喜欢

转载自blog.csdn.net/weixin_38508261/article/details/78021219