摘要:
1.strutsAction是不是线程安全的?如果不是,有什么方式可以保证Action的线程安全?如果是,说明原因2.MVC,分析一下struts是如何实现MVC的3.struts中的几个关键对象的作用(说说几个关键对象的作用)4.spring说说AOP和IOC的概念以及在spring中是如何应用的5.Hibernate有哪几种查询数据的方式6.load()和get()的区别回答:1.Struts1 Action是单例模式并且必须是线程安全的,因为仅有Action的一个实例来处理所有的请求。单例策略限制了Struts1 Action能作的事,并且要在开发时特别小心。Action资源必须是线程安 阅读全文
posted @ 2012-05-04 14:10
spring+hibernate
阅读(760)
评论(0)
推荐(0)
摘要:
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:jee="http://www.springframework.org/schema/jee" xsi:schema 阅读全文
posted @ 2012-05-04 14:10
spring+hibernate
阅读(1050)
评论(0)
推荐(0)
摘要:
本文以给出了一个完整的SSH(Struts2+Spring3+Hibernat4)框架配置方案。适合刚刚学习SSH例子SSHDemo演示了又前台传入请求hello.do,请求,返回一条由数据库中取出的数据。第一步、建立项目1.用MyEclipse建立SSHDemo项目。你至少需要下面的jar文件:1.Struts.jar 2.commons-beanutils.jar 3.commons-digester.jar 4. commons-collections.jar 5. commons-logging.jar 6.Hibernate3.jar 7. antlr-2.7.6.jar 8.asm 阅读全文
posted @ 2012-05-04 14:09
spring+hibernate
阅读(2395)
评论(0)
推荐(0)
摘要:
1,使用Spring 的 ActionSupport2,使用Spring 的 DelegatingRequestProcessor 类。3,全权委托。无论用那种方法来整合第一步就是要为struts来装载spring的应用环境。 就是在 struts 中加入一个插件。 阅读全文
posted @ 2012-05-04 14:07
spring+hibernate
阅读(183)
评论(0)
推荐(0)
浙公网安备 33010602011771号