* spring中加入struts,ssh注意什么

news/2025/2/23 15:51:27
class="baidu_pl">
class="article_content clearfix">
class="htmledit_views">

class="tags" href="/tags/SPRING.html" title=spring>spring,class="tags" href="/tags/HIBERNATE.html" title=hibernate>hibernate,class="tags" href="/tags/STRUTS.html" title=struts>struts

要改的几处:
1。 <class="tags" href="/tags/BEAN.html" title=bean>bean id="dataSource"
  class="org.class="tags" href="/tags/SPRING.html" title=spring>springframework.jdbc.datasource.DriverManagerDataSource">
如果是dbcp连接会出错
 NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool??????????
这是要什么包呀?

2. AdminDAO改成adminDAO,习惯用小写
3.加入class="tags" href="/tags/STRUTS.html" title=struts>struts(要有class="tags" href="/tags/SPRING.html" title=spring>spring_web.jar)
首先要在class="tags" href="/tags/STRUTS.html" title=struts>struts中注册Spring插件  class="tags" href="/tags/STRUTS.html" title=struts>struts-config.xml
  <plug-in className="org.class="tags" href="/tags/SPRING.html" title=spring>springframework.web.class="tags" href="/tags/STRUTS.html" title=struts>struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-

INF/classes/applicationContext.xml" />
  </plug-in>
再是class="tags" href="/tags/STRUTS.html" title=struts>struts  委托Spring配置动作 class="tags" href="/tags/STRUTS.html" title=struts>struts-config.xml
<controller

processorClass="org.class="tags" href="/tags/SPRING.html" title=spring>springframework.web.class="tags" href="/tags/STRUTS.html" title=struts>struts.DelegatingRequestProcessor"></controller>

applicationContext.xml处理class="tags" href="/tags/STRUTS.html" title=struts>struts的action
 <class="tags" href="/tags/BEAN.html" title=bean>bean name="/admin" class="com.pp.class="tags" href="/tags/STRUTS.html" title=struts>struts.action.AdminAction">
 <property name="adminDAO">
   <ref class="tags" href="/tags/BEAN.html" title=bean>bean="adminDAO" />
  </property>
 </class="tags" href="/tags/BEAN.html" title=bean>bean>

 

4.去掉类路径上的关于Hibernate的3个lib
asm.jar
asm-attrs.jar
cglib-2.1.3.jar
class="tags" href="/tags/HIBERNATE.html" title=hibernate>hibernate-annotations.jar


http://www.niftyadmin.cn/n/1425604.html

相关文章

MyISAM和Inondb

MyISAM和Innodb的区别&#xff1a; Innodb支持事务&#xff0c;MyISAM不支持事务。如果在一些列增删改的时候只要哪个出错还可以回滚还原&#xff0c;而MyISAM就不可以。Innodb适合频繁修改以及涉及安全性较高的应用&#xff0c;MyISAM适合查询和插入为主的应用。Innodb支持外…

spring安全

myeclipse 中补加框架的包? 右击工程/构建路径/添加库 Myeclipse配置文件中的注释快捷键 ctrlshiftcspring安全为什么老报错&#xff1a; <filter> <filter-name>Spring Security Filter Chain Proxy</filter-name> <filter-class>org.acegis…

解决errno 256报错_wuli大世界_新浪博客

yum安装时遭遇&#xff1a;errno 256 no more mirrors to try 解决方法&#xff1a;1、yum clean all2、yum makecache

解决errno 256报错

yum安装时遭遇&#xff1a;errno 256 no more mirrors to try 解决方法&#xff1a;1、yum clean all2、yum makecache

Spring Security学习总结一

Error listenerStart 是security.xml中有错误的原因。 security.xml各种过滤器实战,常用九个如下一 链之 RememberMeProcessingFilter 1。使用 &#xff0c;选上remember me后&#xff0c;一旦页面关闭或者服务器重启&#xff0c;还可以记得用户的登陆状态。<input type…

Linux代理配置_wuli大世界_新浪博客

全局代理配置&#xff1a; vi /etc/profile添加如下内容&#xff1a;http_proxyhttp://username:passwordproxy:8080export http_proxyhttps_proxyhttp://username:passwordproxy:8080export https_proxyftp_proxyhttp://username:passwordproxy:8080export ftp_proxy

Spring Security学习总结二

1. <bean id"httpSessionContextIntegrationFilter" class"org.springframework.security.context.HttpSessionContextIntegrationFilter"/> httpSessionContextIntegrationFilter是集成过滤器的一个实现&#xff0c;在用户的一个请求过程中&…

宝塔部署django项目的过程

一. 安装python&#xff08;这里安装的版本为python3.5.2&#xff09; 1.安装相关包 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make2.编译安装python3 安装方式&#xff1a;可以去官网下载编译安装包或者…