![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
emoven
活泼,开朗,好奇
展开
-
spring配置datasource
1、使用org.springframework.jdbc.datasource.DriverManagerDataSource说明:DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用。 ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username}原创 2012-11-11 22:20:02 · 1022 阅读 · 1 评论 -
Spring配置SessionFactory
1.不用dataSource引入hibernate.cfg.xml hibernate.cfg.xml放在src目录下。(hibernate的配置文件) classpath:hibernate.cfg.xml 2.丢掉hibernate.cfg.xml1>使用注解: annotatedClass原创 2012-11-12 21:54:09 · 956 阅读 · 0 评论 -
applicationContext.xml
<!-- - Application context definition for JPetStore's business layer. - Contains bean references to the transaction manager and to the DAOs in - dataAccessContext-local/jta.xml (see web.xml's "c原创 2013-04-30 22:45:56 · 1196 阅读 · 0 评论