转自:https://www.cnblogs.com/carterzhang/p/4288650.html

背景:

tomcat8.0中使用taglib

错误表现:

java.lang.IllegalArgumentException: taglib definition not consistent with specification version

原因:

tomcat6以上在web.xml中定义taglib时要嵌入到jsp-config标签中

<jsp-config>
    <taglib>
        <taglib-uri></taglib-uri>
        <taglib-location></taglib-location>
    </taglib>
</jsp-config>

日常问题记录-- java.lang.IllegalArgumentException: taglib definition not consistent with specification version

05-06 01:43