📄 applicationcontext.xml.svn-base
字号:
<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="byName" default-lazy-init="false"
default-dependency-check="none"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>org.logicalcobwebs.proxool.ProxoolDriver</value>
</property>
<property name="url">
<value>proxool.lotteryWebManager</value>
</property>
</bean>
<!-- Transaction manager for a single JDBC DataSource -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="jdbcTemplate"
class="org.springframework.jdbc.core.JdbcTemplate">
<constructor-arg>
<ref bean="dataSource" />
</constructor-arg>
</bean>
<tx:advice id="txAdviceDao"
transaction-manager="transactionManager">
<!-- the transactional semantics... -->
<tx:attributes>
<!-- all methods starting with 'get' are read-only -->
<tx:method name="get*" read-only="true" />
<tx:method name="find*" read-only="true" />
<tx:method name="set*" propagation="NEVER" />
<tx:method name="get*" propagation="NEVER" />
<tx:method name="retrieve*" read-only="true" />
<tx:method name="list*" read-only="true" />
<!-- other methods use the default transaction settings (see below) -->
<tx:method name="*" />
</tx:attributes>
</tx:advice>
<tx:advice id="txAdviceProcedure"
transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="execute*" propagation="REQUIRED" />
<tx:method name="generate*" propagation="REQUIRED" />
<tx:method name="*" read-only="true" />
</tx:attributes>
</tx:advice>
<!-- ensure that the above transactional advice runs for any execution
of an operation defined by the Service interface -->
<aop:config>
<aop:pointcut id="daoOperation"
expression="execution(* com.szhelper.lotteryWeb.dao.impl.BaseDaoImpl.*(..))" />
<aop:advisor advice-ref="txAdviceDao"
pointcut-ref="daoOperation" />
</aop:config>
<bean id="baseDao" class="com.szhelper.lotteryWeb.dao.impl.BaseDaoImpl">
<property name="jdbcTemplate">
<ref bean="jdbcTemplate" />
</property>
</bean>
<!-- notice comment service begin -->
<bean id="noticeCommentDao"
class="com.szhelper.lotteryWeb.dao.impl.NoticeCommentDaoImpl" parent="baseDao">
<property name="tableName" value="TB_NOTICE_COMMENT" />
<property name="objectClass"
value="com.szhelper.lotteryWeb.model.NoticeComment" />
<property name="keyColumn" value="id" />
<property name="delFalgColumn" value="trashed"></property>
</bean>
<bean id="noticeCommentService"
class="com.szhelper.lotteryWeb.service.impl.NoticeCommentServiceImpl">
<property name="noticeCommentDao">
<ref bean="noticeCommentDao" />
</property>
</bean>
<!-- notice comment service end -->
<!-- notice game result service begin -->
<bean id="noticeGameResultDao"
class="com.szhelper.lotteryWeb.dao.impl.NoticeGameResultDaoImpl" parent="baseDao">
<property name="tableName" value="TB_NOTICE_GAME_RESULT" />
<property name="objectClass"
value="com.szhelper.lotteryWeb.model.NoticeGameResult" />
<property name="keyColumn" value="id" />
<property name="delFalgColumn" value="trashed"></property>
</bean>
<bean id="noticeGameResultService"
class="com.szhelper.lotteryWeb.service.impl.NoticeGameResultServiceImpl">
<property name="noticeGameResultDao">
<ref bean="noticeGameResultDao" />
</property>
</bean>
<!-- notice game winner service begin -->
<bean id="noticeGameWinnerDao"
class="com.szhelper.lotteryWeb.dao.impl.NoticeGameWinnerDaoImpl" parent="baseDao">
<property name="tableName" value="TB_NOTICE_GAME_WINNER" />
<property name="objectClass"
value="com.szhelper.lotteryWeb.model.NoticeGameWinner" />
<property name="keyColumn" value="id" />
<property name="delFalgColumn" value="trashed"></property>
</bean>
<bean id="noticeGameWinnerService"
class="com.szhelper.lotteryWeb.service.impl.NoticeGameWinnerServiceImpl">
<property name="noticeGameWinnerDao">
<ref bean="noticeGameWinnerDao" />
</property>
</bean>
<!-- notice game result service begin -->
<bean id="noticeNewsCategoryDao"
class="com.szhelper.lotteryWeb.dao.impl.NoticeNewsCategoryDaoImpl" parent="baseDao">
<property name="tableName" value="TB_NOTICE_NEWS_CATEGORY" />
<property name="objectClass"
value="com.szhelper.lotteryWeb.model.NoticeNewsCategory" />
<property name="keyColumn" value="id" />
<property name="delFalgColumn" value="trashed"></property>
</bean>
<bean id="noticeNewsCategoryService"
class="com.szhelper.lotteryWeb.service.impl.NoticeNewsCategoryServiceImpl">
<property name="noticeNewsCategoryDao">
<ref bean="noticeNewsCategoryDao" />
</property>
</bean>
<!-- notice game result service begin -->
<bean id="noticeNewsDetailDao"
class="com.szhelper.lotteryWeb.dao.impl.NoticeNewsDetailDaoImpl" parent="baseDao">
<property name="tableName" value="TB_NOTICE_NEWS_DETAIL" />
<property name="objectClass"
value="com.szhelper.lotteryWeb.model.NoticeNewsDetail" />
<property name="keyColumn" value="id" />
<property name="delFalgColumn" value="trashed"></property>
</bean>
<bean id="noticeNewsDetailService"
class="com.szhelper.lotteryWeb.service.impl.NoticeNewsDetailServiceImpl">
<property name="noticeNewsDetailDao">
<ref bean="noticeNewsDetailDao" />
</property>
</bean>
<!-- notice comment service end -->
<!-- dwr configure involved below
<dwr:configuration />
<dwr:controller id="dwrController" debug="true" />
-->
</beans>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -