随笔分类 -  spring4

摘要:然后,在spring.xml中配置bean,最后启动: 阅读全文
posted @ 2017-03-21 17:19 Orc_Warrior 阅读(4634) 评论(0) 推荐(0)
摘要:spring整合hibernate,整合什么? 加入hibernate4的jar包,lib\required下有8个,全加入。 加入mysql驱动 加入c3p0 加入spring4的jar包,required下15个 整合的时候,我该怎么用hibernate呢?用hibernate,需要他的sess 阅读全文
posted @ 2017-01-18 17:43 Orc_Warrior 阅读(116) 评论(0) 推荐(0)
摘要:Spring提供了两种类型的IOC容器实现,BeanFactory和ApplicationContext,前者面向Spring框架本身,后者变相开发者。 ApplicationContext提供了两种实现: ClassPathXmlApplicationContext:从 类路径下加载配置文件 Fi 阅读全文
posted @ 2017-01-11 10:19 Orc_Warrior 阅读(154) 评论(0) 推荐(0)