- 博客(6)
- 收藏
- 关注
原创 ehcach缓存测试类
@Test public void test01(){ URL url = getClass().getResource("/ehcache/ehcache.xml"); CacheManager manager = CacheManager.create(url); //Cache cache = new Cache("test", 1, true, false, 5, 2);
2016-07-21 09:49:31
577
转载 maven 添加中央仓库中没有的jar
jar文件需要放到当前目录下,执行以下命令,设置 groupId,artifactId,version信息,方便项目pom引用 mvn install:install-file -Dfile=xxx.jar -Dpackaging=jar -DgroupId=xxx -DartifactId=xxx -Dversion=x 执行完毕,即可把jar装载到本地仓库,项目中可直接使用引入依赖
2016-06-25 00:08:04
483
原创 接口测试类
package com.glocalme.common; import java.io.IOException; import java.nio.charset.Charset; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.
2016-05-19 13:21:50
331
转载 spring service事务传播
spring定义的事务行为有以下几种: REQUIRED--支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。 SUPPORTS--支持当前事务,如果当前没有事务,就以非事务方式执行。 MANDATORY--支持当前事务,如果当前没有事务,就抛出异常。 REQUIRES_NEW--新建事务,如果当前存在事务,把当前事务挂起。 NOT_SUPPORTED--以非
2016-04-01 10:36:42
393
原创 mybatis测试类
public class RechargeRecordTest { private SqlMapClient sqlMapClient; private ApplicationContext context; // 此方法是在执行testFindUserById之前执行 @org.junit.Before public void setUp() throws Excepti
2016-04-01 10:29:58
2810
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅