Spring
共 2 篇文章
用Spring的jmsTemplate同步发送消息
首先是spring的配置文件 <?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:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.sprin…
2013-01-31 16:32 · Spring
Spring框架结合Hibernate框架的两种方式
主要有两种方式:applicationContext.xml中配置;Hibernate.cfg.xml中配置,applicationContext.xml中调用 1)spring配置hibernate路径 <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation" value="classpath:hibernate.cfg.xml">//引入hibernate配置文件路径 </property> </…
2012-07-06 15:32 · Spring