SSH配置时错误总结

来源:互联网 发布:mac os x 版本升级 编辑:程序博客网 时间:2024/06/05 07:58

spring容器报如下错误

the prefix "tx" for element "tx:annotation-driven" is not bound

解决办法: 配置applicationContext.xml文件的开头,就不会报错

<?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:p="http://www.springframework.org/schema/p"    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-3.0.xsd                     http://www.springframework.org/schema/tx                      http://www.springframework.org/schema/tx/spring-tx.xsd                      http://www.springframework.org/schema/aop                      http://www.springframework.org/schema/aop/spring-aop.xsd                      http://www.springframework.org/schema/context                          http://www.springframework.org/schema/context/spring-context-2.5.xsd">

Struts-config 文件 配置报错:

The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action- mappings?,controller?

解决办法如下:

将Controller放在action-mappings 元素的后面



FR:海涛高软(hunk Xu)