IntelliJ IDEA 无法解析目录 ${contextRoot}
IntelliJ IDEA cannot resolve directory ${contextRoot}
这是一个小小的不便。 IntelliJ IDEA 检查报告文件路径实际存在时无法解析。例如在 index.html
中的这一行
<link rel="stylesheet" type="text/css" href="${contextRoot}/app/bower_components/bootstrap/dist/css/bootstrap.min.css">
检查说:Cannot resolve directory ${contextRoot}
.
如何在不禁用检查的情况下修复它?
您可以按照 docs 中的指示编辑检查设置,但我不确定除了禁用它之外您还能做任何事情。
这是一个小小的不便。 IntelliJ IDEA 检查报告文件路径实际存在时无法解析。例如在 index.html
中的这一行<link rel="stylesheet" type="text/css" href="${contextRoot}/app/bower_components/bootstrap/dist/css/bootstrap.min.css">
检查说:Cannot resolve directory ${contextRoot}
.
如何在不禁用检查的情况下修复它?
您可以按照 docs 中的指示编辑检查设置,但我不确定除了禁用它之外您还能做任何事情。