- 浏览: 13867 次
- 性别:
- 来自: 深圳
最近访客 更多访客>>
文章分类
- 全部博客 (18)
- sdfsdfdsfdsf (0)
- 1a (0)
- 2a (0)
- 3a (0)
- aa (0)
- bb (0)
- 33 (0)
- 44 (0)
- 5a (0)
- 6a (0)
- 7a (0)
- 8a (0)
- LoginAction (1)
- s2_i18n2 (1)
- s2_i18n3 (1)
- s2_i18n4 (1)
- s2_i18n5 (1)
- index.jsp (0)
- language.jsp (0)
- result.jsp (0)
- web.xml (0)
- forward.jsp (0)
- applicationContext.xml (1)
- struts-config.xml (1)
- log4j.properties (1)
- ssh (1)
- SSh_Struts2_Test (1)
- struts2_i18n (1)
- i18n (1)
- struts-2.0.12 (1)
- lib1 (1)
- lib3 (1)
- BatchUpdate (0)
- 2012 (0)
- xinsheng (0)
- spring (0)
- chenting 09 (0)
- oracle 答案 (0)
- 平安(4) (0)
- 平安机试题 (0)
- Alarm! (0)
- thread pool--DatasourceSaveServiceImpl (0)
- thread pool--DefaultPersister (0)
- thread pool--TaskInfoSaveServiceImpl (0)
- thread pool--ThreadPoolHelper (0)
- ehcache.xml (0)
- framework-spring.xml (0)
- TblDsSource.hbm.xml (0)
- EMailInfo.hbm.xml (0)
- downloadAndUpload.jsp----downloadAndUpload.jsp (0)
- UploadAction (0)
- ImportExcelAndCreateService (0)
- null (0)
- start.sh (0)
- run.sh (0)
- jboss-4.2.3.GA\server\default\conf\jboss-log4j.xml (0)
- jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml (0)
- Cache (0)
- CacheFactory (0)
- MemoryCache (0)
- AbstractCache (0)
- CacheFactoryTest (0)
- IObjectCacheService (0)
- DsSourceObjectCacheServiceImpl (0)
- DSManager (0)
- DefaultQuery (0)
- AbstractObjectCacheFlushThread (0)
- CacheProvider (0)
- CacheProviderFactory (0)
- CastorXmlUtils (0)
- ConfigUtil (0)
- DsSource (0)
- EhCache (0)
- EhcacheObjectCache (0)
- EhCacheProvider (0)
- ExportUserOrgAction (0)
- HashMapObjectCache (0)
- ImportUserOrgAction (0)
- ImportUserOrgAction_1 (0)
- ImportUserOrgAction_2 (0)
- LoginAndChgPwdAction (0)
- ObjectCacheConst (0)
- ObjectCacheFactory (0)
- RbacCacheRefreshService (0)
- RbacCacheRefreshServlet (0)
- RbacDataCache (0)
- RBACRightManagerImpl (0)
- RightServiceImpl (0)
- ServerConfigBD (0)
- ServiceLayerThread (0)
- ServiceManager (0)
- ADATA 威刚 16GB MicroSDHC(TF) (0)
- 佛曰:笑着面对,不去埋怨。悠然,随心,随性,随缘。注定让一生改变的,只在百年后,那一朵花开的时间。 (0)
- 收件箱 (0)
- TimeUtils (0)
- TimeZoneHelper (0)
- UserObjectCacheFlushThread (0)
- UserObjectCacheManager (0)
- UserObjectCacheServiceImpl (0)
- VelocityUtil (0)
- AutoSubmitAction (0)
- CfgInfoObjectCacheServiceImpl (0)
- CommonColumnParser (0)
- CRV2TransitionAction (0)
- DataBuffer (0)
- DataSourceContextManager (0)
- 草稿箱 (0)
- boyan (0)
- 再谈Java反射机制(reflection) (0)
- 探索并发编程 (0)
- FormConfigObjectCacheImpl (0)
- LazyTargetValueTaker (0)
- MessageProcessor (0)
- Mos7100MessageProcessor (0)
- PersonalProfInfoCache (0)
- PersonProfileDAO (0)
- ProjectServiceObjectCacheServiceImpl (0)
- ResourceUtil (0)
- ResourceUtilObjectCacheServiceImpl (0)
- savecacheuser.jsp (0)
- taskcache.jsp (0)
- TasksCache (0)
- TblRuleActivityObjectCacheServiceImpl (0)
- thirdMenu (0)
- UserModuleBD (0)
- WFCommonFieldObjectCacheServiceImpl (0)
- WFStepObjectCacheServiceImpl (0)
- JAVA_HOME (0)
- XP (0)
- struts2.zip (0)
最新评论
<?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:p="http://www.springframework.org/schema/p"
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-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
">
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=UTF-8"></property>
<property name="username" value="root"></property>
<property name="password" value="123456"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="show_value">true</prop>
<prop key="format_sql">true</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/aptech/accp/entity/News.hbm.xml</value>
</list>
</property>
</bean>
<!-- 事务管理 -->
<!-- hibernate事务管理器 -->
<bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- 事务通知 -->
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED" />
<tx:method name="*" read-only="true" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut expression="execution (* com.aptech.accp.service..*.*(..))"
id="txPointcut" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut" />
</aop:config>
<!-- dao -->
<bean id="newsDao" class="com.aptech.accp.dao.NewsDaoImpl">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- service -->
<bean id="newsService" class="com.aptech.accp.service.NewsServiceImpl">
<property name="newsDao" ref="newsDao" />
</bean>
<bean name="/news" class="com.aptech.accp.web.action.NewsAction">
<property name="newsService" ref="newsService" />
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
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-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
">
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=UTF-8"></property>
<property name="username" value="root"></property>
<property name="password" value="123456"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="show_value">true</prop>
<prop key="format_sql">true</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/aptech/accp/entity/News.hbm.xml</value>
</list>
</property>
</bean>
<!-- 事务管理 -->
<!-- hibernate事务管理器 -->
<bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- 事务通知 -->
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED" />
<tx:method name="*" read-only="true" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut expression="execution (* com.aptech.accp.service..*.*(..))"
id="txPointcut" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut" />
</aop:config>
<!-- dao -->
<bean id="newsDao" class="com.aptech.accp.dao.NewsDaoImpl">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- service -->
<bean id="newsService" class="com.aptech.accp.service.NewsServiceImpl">
<property name="newsDao" ref="newsDao" />
</bean>
<bean name="/news" class="com.aptech.accp.web.action.NewsAction">
<property name="newsService" ref="newsService" />
</bean>
</beans>
相关推荐
applicationContext.xml 详细配置
struts.xml和applicationContext.xml、web.xml的配置
applicationContext.xml详解
在SSH的applicationContext.xml 中如何配制配制事务
详解Spring的applicationContext.xml文件代码:
包含applicationContext.xml、db.properties、log4j.properties、spring-mvc.xml文件,方便搭建,省去写代码。。
SSH框架applicationContext.xml头部文件
spring4的“所有jar包”+applicationContext.xml+web.xml====全套
Spring Boot技术知识点:如何读取不同路径里的applicationContext.xml配置文件4
这是一些配置文件,可以作为参考,个人感觉很方便的学习方法
spring定时任务必须的包和spring配置说明