在 intellij idea 中,不知道怎么操作的,导致在项目中无论是修改java文件还是html文件后,系统重启后都无法在访问到该文件,html等页面文件报错:template might not exist or might not be accessible by,java文件报错:Invalid bound statement (not found)。
最后经过排查发现系统重启后,target下没有生成新文件,而是文件消失了,所以导致更改后的文件无法访问。
估计应该是 intellij idea 的原因造成的,解决方案是:点击菜单 “build” -> “rebuild project” 。
具体什么原因导致的,暂不清楚。