【Spring】The matching wildcard is strict……
2024-09-01 02:28:31
applicationContext.xml 文件抛出了这个异常信息。
解决方法:
需要在 namespace 后加上对应的 schemaLocation,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd ">
PS: Spring 的 schemaLocation 参考 http://www.springframework.org/schema/
最新文章
- jquery工具方法swap
- jsp基础知识
- Python显示函数调用堆栈
- android之RatingBar控件用法
- 移动端网站或APP点击后出现闪动或灰色背景
- 武汉科技大学ACM:1007: 不高兴的津津
- 创建Windows服务简单流程
- 206.反转单列表 Reverse Linked List
- WSGI的理解
- Raspberry Pi 上使用WN725N连接WIFI
- sql 复习练习
- Earth Wind 一个查看全球风向的网站
- python中map()函数用法
- go语言学习-常用命令
- for循环计算li的个数
- 【oneday_onepage】——Microsoft addresses DevOps with InRelease technology
- 【VBA编程】14.操作工作簿对象
- IO流入门-第六章-FileReader_FileWriter复制
- Tomcat之——内存溢出设置JAVA_OPTS
- 3,SQL语句及数据库优化