SSH笔记四 整合struts2
2009-09-23 00:00:00 来源:WEB开发网6. 在Spring的配置文件application-conten.xml中注册action和manager
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<import resource="beans/data-source.xml" />
<import resource="beans/ssim-dao.xml" />
<import resource="beans/ssim-user.xml" />
<bean id="configurator" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/ssimdb-config.properties</value>
</list>
</property>
</bean>
</beans>
更多精彩
赞助商链接