eclipse导入maven时,html页面引入js的路径出现红色波浪线

用eclipse导入一个springboot项目时,html页面引入js以及css时出现如下图所示情况,html页面用了 thymeleaf模板引擎。另外js文件与css文件路径也是正确无误的。

原来其实很简单就可以解决:

eclipse:Window—>Preferences—>Validation—>Web  Resources Validator

将Web  Resources Validator勾选掉,然后Apply就可以了。

 

猜你喜欢

转载自www.cnblogs.com/lkwtt/p/10779360.html