今天在做ssh项目时,出现如下这个问题:Http 404 Servlet action is not available 后台没有什么异常
去google和百度上check了一下,很多开始做ssh项目的人都遇到这个问题,很多人首先都想到是web.xml,struts-config.xml 、applicationContext.xml的错误。其实很多都不是这些文件有错,是采用spring版本有问题。applicationContext.xml中
spring1.2是:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" " http://www.springframework.org/dtd/spring-beans.dtd">
spring2.0 是
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
如果出现Http 404 Servlet action is not available 问题,首先检查spring.jar版本和applicationContext.xml版本是否匹配。
去google和百度上check了一下,很多开始做ssh项目的人都遇到这个问题,很多人首先都想到是web.xml,struts-config.xml 、applicationContext.xml的错误。其实很多都不是这些文件有错,是采用spring版本有问题。applicationContext.xml中
spring1.2是:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" " http://www.springframework.org/dtd/spring-beans.dtd">
spring2.0 是
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
如果出现Http 404 Servlet action is not available 问题,首先检查spring.jar版本和applicationContext.xml版本是否匹配。