- 浏览: 335878 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (169)
- spring (20)
- java (44)
- ibatis (0)
- hibernate (6)
- struts (2)
- javascript (6)
- ajax (1)
- eclipse (4)
- 其他 (10)
- database (17)
- ibatis 分页 (7)
- xml (2)
- pl/sql (6)
- sql (4)
- apache (3)
- oracle (8)
- jdom (1)
- Open ModelSphere (1)
- 线程 (2)
- 多线程 (2)
- 查找文件 (1)
- Comparator (2)
- jxl (2)
- jquery (1)
- Flex (2)
- 非技术 (1)
- mysql (2)
- zxing (1)
- jdbc (1)
- Java内存 (1)
- editplus (1)
- log4j (1)
- sqlserver (2)
- base64 (1)
- Linux (4)
- Shell (2)
- 非技术共享 (1)
- 省市 (1)
- PowerDesigner (3)
- 观察者模式 (2)
- Servlet (1)
- 单点登录 (1)
- IO (1)
- tomcat (1)
- clob (1)
- html (1)
- jsp (2)
- JNative (1)
- WebService (2)
- Highcharts (1)
- Spring Security (1)
- ztree (1)
- Mongodb (3)
- sftp (1)
- SVN (1)
- openSUSE (1)
- Ubuntu (1)
- nio (1)
- springboot (1)
- java8 (1)
最新评论
-
wajjj:
[flash=200,200][url][img][list] ...
【JAVA】读取excel内容(兼容03和07格式) -
xurichusheng:
jjhe369 写道感谢分享!但是发现一个小问题,就是第13, ...
oracle 存储过程分页查询 -
jjhe369:
感谢分享!但是发现一个小问题,就是第13,14行的V_STAR ...
oracle 存储过程分页查询 -
飞天奔月:
为什么不用 Map<String, String> ...
读取.properties的内容,并将内容放入一个Map中 -
xurichusheng:
814687491 写道测试了一下,无法换行!你可以自定义自己 ...
使用google的zxing制作二维码
applicationContext.xml
<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" xmlns:context="http://www.springframework.org/schema/context" 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 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <!-- 数据库连接配置文件 --> <bean id="configBean" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="classpath:jdbc.properties" /> </bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${driverClassName}" /> <property name="username" value="${username}" /> <property name="password" value="${password}" /> <property name="url" value="${url}" /> 最大连接数量 <property name="maxActive" value="${maxActive}"/> 最小空闲连接 数 <property name="minIdle" value="${minIdle}"/> 最大空闲连接数 <property name="maxIdle" value="${maxIdle}"/> 初始化连接 数 <property name="initialSize" value="${initialSize}"/> 是否在自动回收超时连接的时候打印连接的超时错误 <property name="logAbandoned" value="${logAbandoned}"/> 是否自动回收超时连接 <property name="removeAbandoned" value="${removeAbandoned}"/> 超时时间(以秒数为单位) <property name="removeAbandonedTimeout" value="${removeAbandonedTimeout}"/> 超时等待时间(以毫秒为单位) <property name="maxWait" value="${maxWait}"/> </bean> </beans>
发表评论
-
spring mvc 定时任务,避免同时执行两次
2019-03-09 18:14 3219spring版本:3.1.0 或以 ... -
Spring jdbcTemplate示例
2015-07-08 15:26 1145Spring jdbcTemplate示例 1. ... -
jsp页面显示二进制图片
2014-11-05 15:58 40131. DAO层 import java.sql.C ... -
Spring工具类,提供取得Spring配置文件中定义的Bean的方法
2014-05-15 19:02 1505在 java EE 工程中,经常会用到定 ... -
使用Spring的JdbcTemplate处理Clob
2013-11-01 11:04 42191. 数据库表 req_seq CREATE TA ... -
oracle 存储过程分页查询
2013-10-24 11:09 1901oracle 10gR2 Spring JDBCTe ... -
Spring MVC 处理请求流程
2011-06-01 15:03 1274Spring MVC 处理请求流程: ... -
在spring中配置ibatis 04_dao类
2011-05-31 14:15 1610BaseDAOImpl<T>.java p ... -
在spring中配置ibatis 03_xml配置
2011-05-31 14:11 993UserEntity.xml <?xml ver ... -
在spring中配置ibatis 02_xml配置
2011-05-31 14:09 9331、applicationContext-service.xm ... -
在spring中配置ibatis 01_xml配置
2011-05-31 14:01 10231、applicationContext.xml &l ... -
jdbc.properties
2011-05-31 11:37 3752### mysql ### driverClassName ... -
Spring 配置文件--- 事务处理
2011-05-31 11:28 1329事务的处理在service层。 &l ... -
Spring 配置文件--- 数据源配置(c3p0)
2011-05-31 11:24 1192<!-- 数据库连接配置文件 --> & ... -
spring 定时任务
2011-05-20 14:54 1104import java.util.TimerTask; ... -
另一个 spring 拦截器
2010-07-13 13:48 1520import javax.servlet.http.HttpS ... -
Spring RedirectView 传值乱码解决
2010-05-04 17:40 3106使用的是spring的注解 public ModelAnd ... -
Spring 拦截器
2010-04-27 09:02 58581、在做项目的时候,遇到了一个Spring拦截器的问题。 项目 ... -
一个 Spring 拦截器
2010-04-13 14:40 1564package com.common.core.interce ...
相关推荐
在Spring3中配置数据源,包括DBCP,C3P0,Proxool,Bonecp主要的数据源,里面包含这些数据源的jar文件和依赖文件及配置文件。。 如Bonecp目前听说是最快的数据源,速度是传统的c3p0的25倍, bonecp.properties文件: ...
apache 数据源(dbcp)资源包,此包应用于spring的application.xml文件对数据源配置的资源包。 比较难找、但有一点:绝不能要分数--毕竟非稀有特色资源。 看到很多人要分、痛恨!!!!
spring与jpa整合 除去persistence.xml配置文件 使用属性文件 数据源dbcp访问数据库
(4) dbcp数据源:commons-dbcp、commons-pool (5) junit: junit、hamcrest (6) mysql 驱动 2 数据库准备 本章文件夹下有sampledb.sql文件,将其导入mysql中,会创建一个数据库sampledb,包含两张数据表。导入方法如...
<description>Spring公共配置文件 <!-- 启用spring注解支持 --> <context:annotation-config /> <!-- <bean id="sessionFactory"--> <!-- class="org.springframework.orm.hibernate3....
--读取properties资源文件配置,如deploy.properties--> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <value>classpath:/deploy.properties <!--...
springMVC+JAP整合彻底摆脱persistence.xml配置文件 spring与jpa整合 除去persistence.xml配置文件 使用属性文件 数据源dbcp访问数据库.
一、 Sping配置数据源: 28 二、 注入使用 29 三、 dbcp.BasicDataSource 29 第十课 Spring整合Hiberante3 30 一、 Spring配置hibernate3的SessionFactory 30 (一) xml形式的SessionFactory 30 (二) annotation注解...
引入属性文件,注解扫描包,druid(德鲁伊)配置数据源 (c3p0 dbcp druid),监控数据库,配置sqlSessionFactory 将spring与mybatis结合,装配dao或mapper接口,拦截器方式配置事物——事务通知
1. 从配置文件(通常是XML配置文件中)得到 sessionfactory. 2. 由sessionfactory 产生 session 3. 在session 中完成对数据的增删改查和事务提交等. 4. 在用完之后关闭session 。 5. 在java 对象和 数据库之间有做...
-- 引入配置文件 --> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <!-- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-...
一、 Sping配置数据源: 28 二、 注入使用 29 三、 dbcp.BasicDataSource 29 第十课 Spring整合Hiberante3 30 一、 Spring配置hibernate3的SessionFactory 30 (一) xml形式的SessionFactory 30 (二) annotation注解...
由于Spring通过代理Hibernate完成数据层的操作,所以原Hibernate的配置文件hibernate.cfg.xml的信息也转移到Spring的配置文件中: 代码 4 Spring中有关Hibernate的配置信息 1. 2. !-- 数据源的配置 //--> 3. ...
- 1、配置数据源 - 2、让spring容器管理SqlSessionFactory,单例存在 - 3、把mapper的代理对象放到spring容器中。使用扫描包的方式加载mapper的代理对象。 ###Service层 - 1、事务管理 - 2、需要把service实现类放...
ssh标准整合包 使用无使用jpa注解 使用hibernate配置文件 spring 注解 里面的包有55个 包括jstl 数据源dbcp
l 节点自检:是指对集群中每个IP所在ZK节点上的PATH: /YINSHI.MONITOR.ALIVE.CHECK 定期进行三次如下流程 : 节点连接 – 数据发布 – 修改通知 – 获取数据 – 数据对比, 在指定的延时内,三次流程均成功视为该节点...
3.3. Spring配置文件 这里配置了数据源、事务管理、流程引擎及几个必要的xxxService。这里数据源使用的是dbcp。数据库信息就配置成你自己本地数据库的信息,如果不会配置。 ...