SiteMesh学习入门 http://www.java3z.com/cwbwebhome/article/a…
不静之心
分类:服务端
Spring3.0中的AOP配置方法
http://zywang.iteye.com/blog/974226 第一种 [crayon-6ab9ea9…
Spring整合Hibernate 实现DAO组件
为了实现DAO组件,Spring提供了大量的XxxDaoSupport类,这些DAO支持类对于实现DAO组件有…
Log4Jdbc测试例子
Log4Jdbc测试例子 http://bbs.chinaunix.net/viewthread.php?ti…
log4j.properties模板
参数说明参阅: http://www.codeif.com/topic/291 log4j每天产生一个日志文件…
整合SSH的时候显示SQL配置
applicationContext.xml
|
1 2 3 4 5 6 |
<property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> </props> </property> |
…
为什么要使用HibernateCallback
http://blog.sina.com.cn/s/blog_72b4c81f0100rjy8.html 1….
Spring使用HibernateCallBack
http://blog.163.com/xiaokangzhijia@126/blog/static/1659…
最基本的整合Struts2Spring3Hibernate3注意的地方
MyEclipse、Struts2.1、Spring3.0、Hibernate3.3框架整合详细图解: 下载:…
获得HibernateTemplate的方法
通过注解注入方式 1. 在applicationContext.xml定义 [crayon-6ab9ea9f4…
在Struts2获得WebApplicationContext的方法
1. Action实现implements ServletRequestAware,并实现setServlet…
spring管理hibernate的SessionFactory-多种配置方法
http://blog.csdn.net/fdgaq/archive/2010/05/03/5552561.a…
Spring 3 各JAR包说明
1. spring.jar 是包含有完整发布模块的单个jar 包。这个在~3.03之后不再提供!想要该包的同学…
Spring + JdbcTemplate + JdbcDaoSupport
http://www.mkyong.com/spring/spring-jdbctemplate-jdbcda…
Spring基于tx/aop声明式事务配置
在网上找到的,简洁实用。 http://blog.csdn.net/trwhoya/archive/2009/…
Spring学习 -TransactionProxyFactoryBean事务
applicationContext.xml
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/asl_daily_report" /> <property name="user" value="root" /> <property name="password" value="" /> <property name="maxPoolSize" value="40"/> <property name="minPoolSize" value="1"/> <property name="initialPoolSize" value="1"/> <property name="maxIdleTime" value="20"/> </bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <bean id="newsDao" class="org.crazyit.app.dao.impl.NewsDaoImpl"> <property name="ds" ref="dataSource"/> </bean> <bean id="newsDaoTrans" class= "org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="transactionManager"/> <property name="target" ref="newsDao"/> <property name="transactionAttributes"> <props> <prop key="*">PROPAGATION_REQUIRED,-DataAccessException</prop> </props> </property> </bean> |
…
只读事务还是只读模式
http://san-yun.iteye.com/blog/494405 “事务隔离级别(transactio…
Spring学习 -AOP碰到的问题
1. 今天看了怎么弄AOP,跟着别人写了半天,是在自己一些代码上写的。好不容写完了,但运行一下,咋后台什么东西…
Spring Bean Annotation
下面四个标注用来定义 bean, 自动根据 bean 的类名生成一个首字母小写的 bean [crayon-6…
Spring学习-创建Bean的三种方式
MyTestInstance类
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
package com.app.impl; public class MyTestInstance { private String testMessage; public MyTestInstance(){ System.out.println("初始化我的MyTestInstance类."); } public void info(){ System.out.println(this.getTestMessage()); } public String getTestMessage() { return testMessage; } public void setTestMessage(String testMessage) { this.testMessage = testMessage; } } |
TestCr…
