.metadata/.me_tcat/webapps/FlowerShop/WEB-INF/classes/applicationContext.xml
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?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:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<import resource="mail.xml"/>
<import resource="pay.xml"/>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate.cfg.xml">
</property>
</bean>
<!-- 事务适配器 -->
<bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- aop 与事务联系 aopBean<->txAdvice -->
<aop:config proxy-target-class="true">
<!-- 逻辑拦截 -->
<aop:pointcut id="demoAopBean"
expression="execution(* model.*DAO.*(..))" />
<aop:advisor advice-ref="txAdvice"
pointcut-ref="demoAopBean" />
</aop:config>
<!-- 事务原子 具体方法进行什么事务 -->
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED"
rollback-for="Exception" />
<tx:method name="update*" propagation="REQUIRED"
rollback-for="NoProductInStockException" />
<tx:method name="delete*" propagation="REQUIRED"
rollback-for="NoProductInStockException" />
</tx:attributes>
</tx:advice>
<!-- action -->
<bean id="Index" class="action.index.Index" scope="prototype">
<property name="dao" ref="TNewsDAO"></property>
<property name="dao_pro" ref="TProDAO"></property>
<property name="dao_sort" ref="TNewsSortDAO"></property>
<property name="dao_sort_pro" ref="TProSortDAO"></property>
<property name="pageSaze" value="8"></property>
<property name="pageSaze_tuijian" value="8"></property>
<property name="pageSaze_new" value="8"></property>
<property name="pageSaze_hot" value="8"></property>
<property name="pageSaze_tejia" value="8"></property>
</bean>
<bean id="Foot" class="action.index.Foot" scope="prototype">
<property name="dao" ref="TStaticInfoDAO"></property>
<property name="dao_link" ref="TLinkDAO"></property>
后面还有 167 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。