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' 这个问题如何解决呢
cvc-complex-type.2.4.c 如何解决
原创mb61c3f0ed6fce2 ©著作权
©著作权归作者所有:来自51CTO博客作者mb61c3f0ed6fce2的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
设置 load-on-startup 时出错:cvc-complex-type.2.4.a Invalid content was found starting with element 'load
众所周知,当一个Servlet需要在容器初始化时就被加载的话,需要为其在web.xml中个&...
java myeclipse load-on-startup xmlns:xsi servlet -
springmvc转发到别的系统
springmvc.xml中配置了前后缀controller层类配置转发1. 第一种情况结果:多一个admin的路径2. 第二种情况结果:成功3. 第三种情况(应该添加后缀)结果:报错4. 第四种情况结果:找不到映射路径(多了admin路径)5. 第五种情况结果:多了前缀和后缀6. 第六种情况(斜杠加不加,结果一样)结果:多了前缀7. 第六种情况(斜杠加不加,效果一样)结果:成功重定向1. 第一种
springmvc转发到别的系统 springmvc springmvc路径问题 springmvc转发和重定向 后缀