当前位置:网站首页>org.xml.sax.SAXParseException无法读取方案文档
org.xml.sax.SAXParseException无法读取方案文档
2022-07-20 01:18:00 【盖世馒头】
一开始搜到这篇博客,说错误原因是context
后面没有带版本号。
传送门
我试着加上版本号后,发现没什么作用。
后来自己看了一会,发现只是配置文件写错了。
错误的配置文件:
<?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" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/beans/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/beans/spring-aop.xsd">
没有把beans
改成相应的aop
和context
。
修改后:
<?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" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
边栏推荐
- Win11新Bug任务栏图标不显示的解决方法
- Speech signal processing: sampling theorem [as long as the sampling frequency is greater than or equal to twice the maximum frequency of the effective signal, the sampling value can contain all the in
- CCTV news "Qingdao opens catering quota invoice by hand" news channel_ People's network
- 电气成套设备制造企业项目管理难点及解决方案
- tkinter各种控件库控件创建速度比较
- 我想在label标签上显示SQL数据库表里的记录数
- This domestic conscience software is officially open source!
- Xshell&&putty配色方案
- Codeworks 5 questions per day (average 1500) - day 20
- 零信任安全的优缺点
猜你喜欢
ViT【backbone】
Changjiang Dayong, director of opengauss community: opengauss cooperates with industry innovation to build an open source database root community
[translation] dynamic query in C # expression
【JVM 系列】JVM 对象的分配策略
创建文件,如果文件的上级(或上上级等)目录不存在,则先创建上级目录,再创建文件
STM32移植LVGL8.2
Makefile详解
ADG备库可以进行数据泵导出吗?不可以
和利时LE5107_LE5106_自由口协议
Ansible introduction and installation
随机推荐
和利时LE5107_LE5106_自由口协议
NET问答: C# 中是否有最高效的方式对大文件做 checksum ?
CCTV news "Wuhan opens catering quota invoice by hand" news channel_ People's network
DeiT:注意力也能蒸馏
Unity中的Animation动画倒播、正播
信息系统项目管理师核心考点(四十六)采购工作说明书(SOW)
Abandon notepad++, this open source alternative is more awesome!
电气成套设备制造企业项目管理难点及解决方案
Leetcode- number of occurrences of numbers in the array (single dog problem)
“OSError: [WinError 126] 找不到指定的模块”
CCTV news "Guangzhou rent quota invoice by hand" news channel_ People's network
What is the difference between zero trust and SASE? The answer is not really important
数据仓库开发 SQL 使用技巧总结
Deeply participated in opengauss Developer Day 2022, cloud and enmo showed their style in a number of activities
STM32移植LVGL8.2
Information system project manager core examination center (46) procurement statement of work (SOW)
Leetcode 做题语法补充总结笔记
2022年优秀灾难恢复解决方案
[translation] dynamic query in C # expression
How to use MySQL export statements