root/lang/java/misc/ssh-blank/src/main/webapp/WEB-INF/applicationContext.xml @ 32774

Revision 32774, 2.4 kB (checked in by rikeda, 4 years ago)

JSTLの依存ファイル追加。StrutsのTLDファイルは不要だった。

  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"
3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4        xmlns:aop="http://www.springframework.org/schema/aop"
5        xmlns:tx="http://www.springframework.org/schema/tx"
6        xsi:schemaLocation="http://www.springframework.org/schema/beans
7                            http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
8                            http://www.springframework.org/schema/aop
9                            http://www.springframework.org/schema/aop/spring-aop-2.1.xsd
10                            http://www.springframework.org/schema/tx
11                            http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"
12        default-autowire="byName" default-lazy-init="true">
13
14    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
15        <property name="configLocation">
16            <value>/WEB-INF/hibernate.cfg.xml</value>
17        </property>
18    </bean>
19
20    <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"/>
21
22    <aop:config>
23        <aop:pointcut id="tracePointcut" expression="execution(* org.coderepos..*(..))"/>
24        <aop:advisor pointcut-ref="tracePointcut" advice-ref="traceInterceptor"/>
25    </aop:config>
26
27    <aop:config>
28        <aop:pointcut id="transactionPointcut" expression="execution(* org.coderepos.service..*(..))" />
29        <aop:advisor pointcut-ref="transactionPointcut" advice-ref="transactionAdvice"/>
30    </aop:config>
31
32    <tx:advice id="transactionAdvice" transaction-manager="transactionManager">
33        <tx:attributes>
34            <tx:method name="find*" read-only="true" />
35            <tx:method name="*" />
36        </tx:attributes>
37    </tx:advice>
38
39    <bean id="traceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor">
40        <property name="useDynamicLogger" value="true"/>
41    </bean>
42
43    <bean name="/index" class="org.coderepos.action.EmpAction"/>
44    <bean id="deptService" class="org.coderepos.service.impl.DeptServiceImpl"/>
45    <bean id="empService" class="org.coderepos.service.impl.EmpServiceImpl"/>
46    <bean id="deptDao" class="org.coderepos.dao.impl.DeptDaoImpl"/>
47    <bean id="empDao" class="org.coderepos.dao.impl.EmpDaoImpl"/>
48
49</beans>
Note: See TracBrowser for help on using the browser.