-
spring配置的时候报no declaration can be found for element 'tx:advice'是为什么呢?5
在配置的时候没有报这个错误,启动的时候才报的,有人说可能是jar的问题,有人知道是什么原因吗>
问题补充:suziwen 写道没配置头SCHEMA的标注
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
我已经配置了,如果没有配置好的话,在配置的时候就报这个错误了,我是在启动的时候才报这个错误的!2010年5月06日 10:30
2个答案 按时间排序 按投票排序
-
采纳的答案
把我这个帖上去试试
<?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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd ">
同时检查相应的jar包是否完整2010年5月06日 18:11
-
没配置头SCHEMA的标注
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">2010年5月06日 11:00
相关推荐
- 解决spring事务启动错误can be found for element 'tx:advice'.
- but no declaration can be found for element 'tx:advice'
- spring+hibernate配置报错no declaration can be found for element 'tx:advice'
- Spring使用运行测试文件的时候报 The matching wildcard is strict, but no declaration can be found for element 'tx:...
- spring报错cvc-complex-type.2.4.c The matching wildcard is strict, but no declaration can
相关推荐
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document 'http:// code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find ...
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources' 报错
在Spring框架中,配置文件是核心组件之一,它定义了bean的实例化、依赖注入以及其他的设置。当遇到“cvc-elt.1: 找不到元素 'beans' 的声明”这种异常时,通常意味着Spring在尝试解析XML配置文件时遇到了问题。这个...
使用 dubbo 时需要添加 dubbo 支持,否则会报错 。cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.
当我们遇到描述中的错误——"cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:reference'"时,这通常意味着XML解析器在尝试解析配置文件时找不到...
inurl:Article_Print.asp? EnCompHonorBig.asp?id=随便加个数字 showproduct.asp?id=随便加个数字 ...inurl:declaration_more.php?decl_id= inurlageid= inurl:games.php?id= inurlage.php?file=
spring-instrument-tomcat-... so Spring provides a custom ClassLoader that can be used by placing spring-instrument-tomcat.jar in $TOMCAT_HOME/lib and putting a loader declaration in META-INF/context.xml.
- **Variable Declaration in For Loop**: Variables can be declared within the for loop. For example: ```scala for (i ; from = 4 - i; j ) println(i * 10 + j) ``` #### Pattern Matching Pattern ...
《IntelliJ IDEA中的Spring助手插件:Spring Assistant 1.0.1详解》 在软件开发领域,尤其是Java世界,Spring框架的应用无处不在。作为一款强大的集成开发环境(IDE),IntelliJ IDEA提供了丰富的工具来提升开发...
这是用C++语言写的,新建parser类别要选C++,其他对于VS的配置和C语言一样。for语句用的是枚举所有情况,你可以自行修改。 对预备工作中自然语言描述的简化C编译器的语言特性的语法,设计上下文无关文法进行描述 ...
【sgcWebSockets4源码版】是一个用于Delphi开发的WebSocket库,适用于D7(Delphi 7)到XE10.3.2等多个版本的Delphi IDE。WebSocket是一种在客户端和服务器之间建立持久连接的协议,它允许双向通信,即服务器和客户端...
"ESWA的Declaration of Interest statement(利益声明)word版"是一个重要的文件,它涉及到作者在发表论文时必须公开的任何可能影响其研究成果公正性的财务或个人关系。这份声明通常会伴随论文一同发布,以确保读者...
2. **“Unsatisfied forward or external declaration: 'TForm1.RadioGroupClick'”**:这个错误提示表示编译器找不到某个方法的声明。可能的原因有两个:一是方法内部的代码有语法错误或者逻辑问题,导致编译器无法...
45. **Declaration of `<Name>` differs from previous declaration** - **含义**: `<Name>` 的声明与之前的声明不同。 - **解决办法**: 确认所有声明一致。 46. **Default property must be an array property*...