采用spring+struts2+mybitas搭一个java web的框架(采用注解的形式)

2025-05-09 01:21:18
推荐回答(1个)
回答1:

给你看看 我的配置

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">





use-default-filters="false">
expression="org.springframework.stereotype.Controller" />
expression="org.springframework.stereotype.Service" />
expression="org.springframework.stereotype.Repository" />
expression="org.springframework.stereotype.Component" />








destroy-method="close">







class="org.springframework.jdbc.datasource.DataSourceTransactionManager">