2007-11-07
杂项
spring数据源配置
- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" singleton="true">
- <property name="jndiName">
- <value>tempDS</value>
- </property>
- </bean>
spring 整合 iBatis
- <bean id="sqlMapClient"
- class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
- <property name="configLocation">
- <value>/WEB-INF/sql-map-config.xml</value>
- </property>
- <property name="dataSource" ref="dataSource" />
- </bean>
web.xml 中 spring (一种方式)
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/spring-config-global.xml
- </param-value>
- </context-param>
- <listener>
- <listener-class>
- org.springframework.web.context.ContextLoaderListener
- </listener-class>
- </listener>
发表评论
我的相册
2006国米全家福
共 3 张
共 3 张
最近加入圈子
最新评论
-
cxf+spring+struts2的hell ...
Cxf2.08+spring2+struts2下可以跑通。
-- by lycmlove -
cxf+spring+struts2的hell ...
最后在浏览器里运行:http://localhost:8080/HelloWor ...
-- by samwalt -
cxf+spring+struts2的hell ...
hanqiaorui 写道qianlei007 写道 &n ...
-- by samwalt -
cxf+spring+struts2的hell ...
qianlei007 写道 <impo ...
-- by hanqiaorui -
cxf+spring+struts2的hell ...
<import resource="classpath:META-INF/ ...
-- by qianlei007







评论排行榜