关于SSH框架中action找不到的原因:

xiaoxiao2021-03-01  32

关于SSH框架中action找不到的原因: 1.struts-config.xml中应该有 <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor" /> 2.struts-config.xml中的配置applicationContext.xml的路径问题 <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="classpath:applicationContext.xml" /> </plug-in> 或者: <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" /> </plug-in> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" /> </plug-in> 3.包冲突: 删除:c3p0-0.9.0.4.jar asm-2.2.3.jar 4.必须删除包hibernate-annotations.jar(这一点最重要) --------------------痞子木宣
转载请注明原文地址: https://www.6miu.com/read-4050161.html

最新回复(0)