首页 新闻 赞助 找找看

关于Spring的声明式事务

0
[待解决问题]

不加声明式事务可以正常执行

但是我在配置文件中加上声明式事务之后就出现了问题

Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring-dao.xml]
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring-dao.xml]; nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 2 字节的 UTF-8 序列的字节 2 无效。

当我去掉事务相关代码时候,之前能运行的程序也无法运行了

眷恋时光的主页 眷恋时光 | 菜鸟二级 | 园豆:202
提问于:2022-09-09 13:46
< >
分享
所有回答(1)
0

去掉所有中文注释呢?
是哟notepad++ 查看所有 字符,可能发现某些不规范的UTF-8字符

快乐的凡人721 | 园豆:3915 (老鸟四级) | 2022-09-13 19:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册