ITeye博客

spring

共 2 篇文章

Spring所使用的两种代理

Spring在实现接口的类中使用的是JDK代理,在未实现接口的类使用的是CGLIB代理。

2014-09-01 17:33 · spring

Spring3+Struts2+SpringJDBC注解实现

个人有点侧重于性能,于是就想着把hibernate替换为JDBC,但是J2EE的jdbc还要额外的控制事物,就换成了spring容器封装好的jdbc,有不对的地方还请大家指出来,小弟在此谢过了。 这里有两个配置文件web.xml和ApplicationContext.xml,至于Struts2的配置文件很简单就没有拿出来,还是按照常规的MVC模式。我写的大致是dao,service,action,entity。 这是ApplicationContext.xml web.xml部署描述符参数配置 contextConfigLocation classpath:applicationContex…

2014-07-16 17:34 · spring · Spring