cvc-complex-type.2.4.c 如何解决

spring的applicationContext.xml中
<beans
   xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:tx="http://www.springframework.org/schema/tx"
   xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
.........
  <tx:advice id="advice" transation-manager="transationManager">
    <tx:attributes>
 <tx:method name="save*" propagation="REQUIRED"/>
 <tx:method name="find*" propagation="SUPPORTS"/>
    </tx:attributes>
  </tx:advice>
  <aop:config>
    <aop:pointcut id="biz" expression="execution(* service.*.*(..))"/>
    <aop:advisor advice-ref="advice" pointcut-ref="biz"/>
  </aop:config>
.......
</beans>
为什么会这样?cvc-complex-type.2.4.c:The matching wildcard is strict,but no declaration can be found for element'tx:advice'
这个问题如何解决呢
xsi:schemaLocation 加上:

http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
时间: 2024-07-29 02:21:58

cvc-complex-type.2.4.c 如何解决的相关文章

clang编译boost提示unknown type name __int64,请问怎么解决?

问题描述 clang编译boost提示unknown type name __int64,请问怎么解决? 问题步骤: 1. 代码中#include 2. clang编译 提示错误: boostincludeboost-1_51boostinterprocessdetailwin32_api.hpp unknown type name __int64 求助: 在不去掉#include 的前提下该如何解决这个unknown type name __int64?

jquery validate 触发不了验证 因为我有多个按钮提交所以我写成 &amp;amp;lt;input type=&amp;amp;quot;button&amp;amp;quot; value=&amp;amp;quot;保存&amp;amp;quot; onclick=&amp;amp;quot;save();&amp;amp;quot;/&amp;amp;gt; type不是submit 求解决办法

问题描述 <%@pagecontentType="text/html;charset=UTF-8"%><%@tagliburi="/WEB-INF/c.tld"prefix="c"%><%@tagliburi="/WEB-INF/fmt.tld"prefix="fmt"%><%@taglibprefix="spring"uri="htt

Could not load type System.ServiceModel.Activation.HttpModule解决办法

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] 上网搜了下,问题产生的原因是在安装了IIS后又装了其他版本的framework, 导致assemble中的版本和程序使用的版本不一致了.解决办法是使用 aspne

ie8下修改input的type属性报错的解决方法_javascript技巧

摘要: 现在有一个需求如图所示,当用户勾选显示明文复选框时,要以明文显示用户输入的密码,去掉勾选时要变回密文,刚开始想到的就是修改输入框的type来决定显示明文还是密文,使用jQuery的attr来做试验,测试结果是chrome,Firefox,ie9+都是好的,在ie8以下就会报错,查找了下原因,ie8中是不允许修改input的type属性,最终换了种思路实现. 当勾选显示明文时替换输入框为type="text",不勾选时在将输入框替换为type="password&quo

linux中 iptables遇到iptables: Protocol wrong type for socket

 下面琰各位介绍一篇关于Linode vps iptables遇到iptables: Protocol wrong type for socket.错误的解决方法,希望文章对各位有帮助     想在linode vps centos 6.4上iptables加入限制ip连接数不能超过100的规则: iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 100 -j REJECT 出现错误: iptable

解决在Web.config或App.config中添加自定义配置的方法详解_实用技巧

.Net中的System.Configuration命名空间为我们在web.config或者app.config中自定义配置提供了完美的支持.最近看到一些项目中还在自定义xml文件做程序的配置,所以忍不住写一篇用系统自定义配置的随笔了.如果你已经对自定义配置了如指掌,请忽略这篇文章.言归正传,我们先来看一个最简单的自定义配置 复制代码 代码如下: <?xml version="1.0" encoding="utf-8" ?> <configura

jQuery prototype冲突的2种解决方法(附demo示例下载)_jquery

本文实例分析了jQuery prototype冲突的2种解决方法.分享给大家供大家参考,具体如下: jquery和prototype怎么会冲突,归根到底就是因为他们二个都用到了$,同时用,混淆了.这个问题解决过不下5次,每次解决都要查一下.淡疼,嘿嘿. 方法一.在jquery的核心库文件中加代码. 1.一般是jquery.js,或者jquery.min.js,有的带版本号的.知道是哪个文件就行. })( window ); jQuery.noConflict(); //最后面,加上这一行. 2.

JavaScript中解决多浏览器兼容性23个问题的快速解决方法_javascript技巧

一.document.formName.item("itemName") 问题 问题说明:IE下,可以使用 document.formName.item("itemName") 或 document.formName.elements ["elementName"]:Firefox 下,只能使用document.formName.elements["elementName"]. 解决方法:统一使用document.formNa

SAP WM 虚拟Storage Type设计案例之 - Fixed Bin Storage Type 里实现FIFO –

SAP WM 虚拟Storage Type设计案例之 - Fixed Bin Storage Type 里实现FIFO – 笔者所在的SAP实施项目里,有部分采购物料是存放在固定货架上.业务要求,存储在这些货架上的物料,要能在SAP系统上较好的管理与实现先进先出(FIFO).   前提:项目里的全球模板里不启用SAP Batch Management,而是一个与库存无关的弱批次管理功能 – Documentary Batch, 以实现追溯.业务仓库空间很有限,这些物料只能固定存储,不能放在其它货

《Spark 官方文档》Spark SQL, DataFrames 以及 Datasets 编程指南(四)

使用Spark SQL命令行工具 Spark SQL CLI是一个很方便的工具,它可以用local mode运行hive metastore service,并且在命令行中执行输入的查询.注意Spark SQL CLI目前还不支持和Thrift JDBC server通信. 用如下命令,在spark目录下启动一个Spark SQL CLI ./bin/spark-sql Hive配置在conf目录下hive-site.xml,core-site.xml,hdfs-site.xml中设置.你可以用