redis启动
parent
b0420db2db
commit
a16de4fa6e
17
pom.xml
17
pom.xml
|
@ -36,17 +36,22 @@
|
|||
<artifactId>jedis</artifactId>
|
||||
<version>2.7.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven_repository.org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
<version>6.0.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven_repository.org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
<version>3.0.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
package com.lc.test;
|
||||
package com.lc;
|
||||
|
||||
|
||||
import com.lc.Runner.SpringJunitRunner;
|
||||
import com.lc.redisPool.IRedisPool;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
@ -24,7 +23,7 @@ public class RedisPoolTest {
|
|||
private final CountDownLatch cdl=new CountDownLatch(THREAD_NUM);//栅栏
|
||||
//发令枪 等待一定的时间点 栅栏 等待一定的数量
|
||||
|
||||
@Test
|
||||
|
||||
public void test() throws Exception {
|
||||
//初始化连接池
|
||||
pool.init(9,10000);
|
|
@ -0,0 +1,13 @@
|
|||
package com.lc;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Test.class,args);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue