【STS-eclipse】jsp的option嵌套 c:if 引起的异常【Failure to parse JSTL tags inside option】

环境:
MacBook Pro
STS(eclipse)【版本:sts-3.9.0.RELEASE】

问题:
这里写图片描述

解决办法:

  1. 简单去掉红“X”显示;
    在validation中去掉jsp验证;【JSP [Syntax|Content] Validator】这俩项Build都去掉✔️
    这里写图片描述
    改完效果图:【没有了高亮,怎么能忍。。。算了还是推荐方法2】
    这里写图片描述
  2. 彻底修复;
    更换新版本STS【sts-3.9.4.RELEASE】

思考:
这个问题主要是eclipse迭代版本4.7(Oxygen)引起的,官网bug截图:【截图3.9版本是Eclipse Web Tools版本,This release is part of Eclipse Oxygen.】
这里写图片描述

STS-3.9.0也有问题,更换【3.9.4】后就好了。
STS-3.9.0.RELEASE 是基于eclipse 4.7.0
STS-3.9.4.RELEASE 是基于eclipse 4.7.3a
这里写图片描述
这里写图片描述

TIPS:

  1. eclipse各个版本代号对应:https://zh.wikipedia.org/wiki/Eclipse
  2. STS对应eclipse版本:http://spring.io/tools/sts/legacy
  3. eclipse版本由来:
    1. https://www.cnblogs.com/dudumao/p/3668849.html
    2. https://www.cnblogs.com/chenmingjun/p/8404628.html

参考:

https://blog.csdn.net/jinguangliu/article/details/77542199
https://blog.csdn.net/luolianxi/article/details/78546354

下载官方给出的补丁:https://bugs.eclipse.org/bugs/show_bug.cgi?id=518987#c0

猜你喜欢

转载自blog.csdn.net/guodonggang/article/details/80648873