1:添加spring-data-redis1.7.1相关jar及测试代码
2:添加fastdfs的相关jar及测试代码 3:修改某些系统文件中项目名称为maat_service(有些系统配置文件里面的项目名称没有改过来)
This commit is contained in:
31
src/test/java/com/nis/test/RedisTest.java
Normal file
31
src/test/java/com/nis/test/RedisTest.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package com.nis.test;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.web.WebAppConfiguration;
|
||||
|
||||
import com.nis.web.service.restful.TestRedisService;
|
||||
|
||||
@WebAppConfiguration
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
// @ContextConfiguration(locations =
|
||||
// {"classpath:applicationContext-*.xml,classpath:spring-mvc.xml,classpath:mybatis-config.xml"
|
||||
// })
|
||||
@ContextConfiguration(locations = { "classpath:applicationContext-redis.xml", "classpath:spring-mvc.xml"
|
||||
// ,"classpath:mybatis-config.xml"
|
||||
})
|
||||
public class RedisTest {
|
||||
|
||||
@Autowired
|
||||
TestRedisService configService;
|
||||
|
||||
@Test
|
||||
public void testTrans() {
|
||||
configService.saveConfigCompile();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user