16
jsp,taglib导入http://www.springframework.org/tags/form错误,无法在web.xml或使用此...
source link: https://blog.csdn.net/weixin_46022139/article/details/111999606
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
jsp中taglib导入http://www.springframework.org/tags/form标签库发生无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://www.springframework.org/tags/form]怎么办?
-
方法1
修改tomcat版本,目前我知道的不会出异常的有8.5.50,7.0.99,会出异常的有8.5.49,其他的没有了解
如果修改了tomcat版本还是不行的话就使用方法2 -
方法2
在WEB-INF下放个spring-form.tld文件就可以了
那么spring-form.tld文件去哪里找呢?
在spring-webmvc的依赖中有一个META-INF,这个目录里面就有Spring-form.tld文件,拷贝出来丢自己项目的WEB-INF中就行了。 -
IDEA maven找文件的流程
External Libraries->spring-webmvc->META-INF->Spring-form.tld
如果自己懒得去找的话也可以去我的这个链接下载
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK