- 浏览: 150976 次
- 性别:
- 来自: 株洲
文章分类
最新评论
-
cckfyezi:
上传压缩包不给密码 逗谁玩呢
Spring Quartz 动态设置cronExpression -
samgogo:
密码是多少呀?
xls&xlsx 导入、导出、解析(笔记) -
ls2005nba:
密码是多少呀?
xls&xlsx 导入、导出、解析(笔记) -
liuweihug:
jquery message tooltip告警提示信息展示控 ...
jQuery 消息提示框 -
文昌平蓝杰:
good,万分感谢呀,亲,
在eclipse里编写android代码时很卡,解决方案
<?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:util="http://www.springframework.org/schema/util" 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-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-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"> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>/WEB-INF/config/jdbc.properties</value> </list> </property> </bean> <!-- 数据源 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${jdbc.driverClassName}" /> <property name="url" value="${jdbc.url}" /> <property name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> <property name="initialSize" value="5" /> <property name="maxActive" value="100" /> <property name="maxIdle" value="30" /> <property name="maxWait" value="1000" /> <property name="poolPreparedStatements" value="true" /> <property name="defaultAutoCommit" value="false" /> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"></property> <property name="mappingResources"> <list> <value>com/yuanhai/pojo/Admin.hbm.xml</value> <value>com/yuanhai/pojo/Contactway.hbm.xml</value> <value>com/yuanhai/pojo/Freephne.hbm.xml</value> <value>com/yuanhai/pojo/HelpInfo.hbm.xml</value> <value>com/yuanhai/pojo/IndexClass.hbm.xml</value> <value>com/yuanhai/pojo/Pictures.hbm.xml</value> <value>com/yuanhai/pojo/Scheme.hbm.xml</value> <value>com/yuanhai/pojo/Subclass.hbm.xml</value> <value>com/yuanhai/pojo/SubclassInfo.hbm.xml</value> <value>com/yuanhai/pojo/SuclssInfoContent.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> </props> </property> </bean> <!-- 数据库访问的基类 --> <bean id="baseDao" class="com.yuanhai.utils.BaseDao"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> <!-- 事务相关配置 --> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> <tx:advice id="adv" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="add*" propagation="REQUIRED" /> <tx:method name="remove*" propagation="REQUIRED" /> <tx:method name="modif*" propagation="REQUIRED" /> <tx:method name="*" propagation="SUPPORTS" read-only="true" /> </tx:attributes> </tx:advice> <aop:config> <aop:advisor advice-ref="adv" pointcut="execution(public * com.yuanhai.biz.*.*(..))" /> </aop:config> <!-- 其它资源文件引入--> <import resource="config/spring/system.xml" /> </beans>
网上全面文章
http://blog.csdn.net/ayan117/archive/2010/07/20/5748134.aspx
发表评论
-
HTML特殊字符过滤器
2015-12-08 14:40 979/** * HTML标签过滤,防止用户恶意提交带H ... -
POI取得Cell的字符串(String)值
2015-11-12 15:56 895public final static String DA ... -
Spring的注解积累
2015-06-26 14:44 569转载:http://yijiesuifeng.iteye.co ... -
Spring Quartz 动态设置cronExpression
2013-11-27 12:18 1426什么是动态定时任务:是由客户制定生成的,服务端只知道该去执行什 ... -
Hibernate中HQL函数汇总及其说明
2013-11-11 15:54 2381Criteria查询对查询条件进行了面向对象封装,符合编程人员 ... -
xls&xlsx 导入、导出、解析(笔记)
2012-05-18 23:27 5988/** * excel文件导入、导出、下载工具 ... -
spring util
2011-08-16 15:42 946public class Demo { publi ... -
使用spring jdbc时 事务配置文件
2011-07-26 21:53 871<?xml version="1.0&qu ... -
spring--线程池的学习笔记
2011-07-26 14:27 1999package com.spring.test; ... -
spirng 支持的三种定时器学习笔记
2011-07-26 13:02 698以下是三个定时器的类 package com.spring ... -
Servlet 在线打开Excel,pdf,word......
2011-04-29 16:46 1764网上好多资料都说可以通过 ServletOutputStr ... -
创建Excel 并导出到Web客户端
2011-04-29 16:45 1343package com.java.util; imp ... -
配置tomcat默认路径
2011-03-22 11:12 920<Host name="localhost&q ... -
导PDF
2011-01-20 13:22 989package com.book.web; impo ... -
Java 邮件发送
2010-12-25 13:09 765package com.mail; import j ... -
配置多个dwr 文件
2010-11-17 22:00 742<!-- dwr 配置 --> ... -
spring aop _002
2010-11-16 00:44 793// 环绕型 package com.aop; i ... -
spring aop_001
2010-11-15 23:55 792引用 // 事务 <bean id ... -
c3p0 配置文件
2010-11-04 01:45 1172Hibernate 中配置C3P0连接 ... -
struts1 文件下载
2010-11-04 01:40 2043//实现文件下载 public ActionForward ...
相关推荐
springboot(4) 整合mybatis和hibernate 请删除项目中本地仓库的配置,或者改成国内的公共仓库,否则将无法启动
5、数据库是MySQL、Oracle和SQL Server,Hibernate的Dialect可使程序移植到其他数据库。 6、采用开源的互动地图Javascript库Leaflet,处理自定义在线地图。 7、采用Google Guava Collections,性能高于Apache ...
代码 4 Spring中有关Hibernate的配置信息 1. 2. !-- 数据源的配置 //--> 3. 4. destroy-method="close"> 5. 6. 7. 8. 9. 10. !-- Hibernate会话工厂配置 //--> 11. 12. class="org.springframework.orm...
本系统采用的关键技术是Struts2+...Spring是以MVC模式为基础,依赖注入为核心的Java应用框架,它利用Java的反射机制,将系统各层无缝的整合在一起,实现了系统各模块和各层次的解藕,提高了系统的可维护性和可移植性。
5、数据库是MySQL、Oracle和SQL Server,Hibernate的Dialect可使程序移植到其他数据库。 6、采用开源的互动地图Javascript库Leaflet,处理自定义在线地图。 7、采用Google Guava Collections,性能高于Apache ...
6.8.1. 在Spring中使用AspectJ来为domain object进行依赖注入 6.8.1.1. @Configurable object的单元测试 6.8.1.2. 多application context情况下的处理 6.8.2. Spring中其他的AspectJ切面 6.8.3. 使用Spring IoC来...
6.8.1. 在Spring中使用AspectJ进行domain object的依赖注入 6.8.2. Spring中其他的AspectJ切面 6.8.3. 使用Spring IoC来配置AspectJ的切面 6.8.4. 在Spring应用中使用AspectJ加载时织入(LTW) 6.9. 更多资源 7...
5、数据库是MySQL、Oracle和SQL Server,Hibernate的Dialect可使程序移植到其他数据库。 6、采用开源的互动地图Javascript库Leaflet,处理自定义在线地图。 7、采用Google Guava Collections,性能高于Apache ...
5、数据库是MySQL、Oracle和SQL Server,Hibernate的Dialect可使程序移植到其他数据库。 6、采用开源的互动地图Javascript库Leaflet,处理自定义在线地图。 7、采用Google Guava Collections,性能高于Apache ...
第1章认识Spring ...Spring Framework 是一个开源的Java/Java EE全功能栈(full-stack)的应用程序框架,以Apache许可证形式发布,也有.NET平台上的移植版本 喜欢Java web开发的童鞋可以上手Spring MVC
6.8.1. 在Spring中使用AspectJ来为domain object进行依赖注入 6.8.2. Spring中其他的AspectJ切面 6.8.3. 使用Spring IoC来配置AspectJ的切面 6.8.4. 在Spring应用中使用AspectJ Load-time weaving(LTW) 6.9. ...
4 依赖注入:建立对象与对象之间依赖关系的实现,包括接口注入、构造注入、set注入,在Spring中只支持后两种 5 AOP:面向方面编程,我们可以把日志、安全、事务管理等服务(或功能)理解成一个“方面”,那么以前...
后来我把代码移植到自己的SSH项目上,才运行起来,稍微修改一点代码。前台用Extjs,数据库也在里面,其实不需要数据库的,hibernate可以自动生成,前提先建好数据库。主要用来学习ExtJs还不错,ExtJs用起来感觉和...
HibernateTemplate对Hibernate Session操作进行了封装,而 HibernateTemplate.execute方法则是一封装机制的核心 *在spring的配置文件里,移植了整个hibernate.cfg.xml的内容。
6.8.1. 在Spring中使用AspectJ进行domain object的依赖注入 6.8.2. Spring中其他的AspectJ切面 6.8.3. 使用Spring IoC来配置AspectJ的切面 6.8.4. 在Spring应用中使用AspectJ加载时织入(LTW) 6.9. 更多资源 7...
6.8.1. 在Spring中使用AspectJ来为domain object进行依赖注入 6.8.2. Spring中其他的AspectJ切面 6.8.3. 使用Spring IoC来配置AspectJ的切面 6.8.4. 在Spring应用中使用AspectJ Load-time weaving(LTW) 6.9. ...
Spring.Net 是一个很强大的框架,在java里非常的火,NHibernate也是从java里移植过来的.不过和Java下面的用法有所区别.
java jar包,亲测试可用 ...把一个JAR文件添加到系统的classpath环境变量之后,java通常会把这个JAR文件当做一个路径来处理。通常使用jar命令来压缩,可以把一个或多个路径全部压缩成一个JAR文件。
[Spring]-帮助开发人员构建基于JVM的简单,可移植,快速和灵活的系统和应用程序 [Hibernate]-一个开源Java持久性框架项目。 [OpenCSV]-Opencsv是一个非常简单的用于Java的csv(逗号分隔值)解析器库。 [POI]-用于...