update: roll back spring boot version to 2.2.12

This commit is contained in:
hongqiaowei
2021-01-18 15:25:12 +08:00
parent 1e5295a2b0
commit cefb42ed13
2 changed files with 10 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.13.RELEASE</version>
<version>2.2.12.RELEASE</version>
<relativePath/>
</parent>
<groupId>we</groupId>

View File

@@ -1,9 +1,11 @@
package we.stats.ratelimit;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import redis.embedded.RedisServer;
import we.redis.RedisProperties;
import we.redis.RedisServerConfiguration;
import we.redis.RedisTemplateConfiguration;
@@ -27,6 +29,13 @@ public class ResourceRateLimitConfigServiceTests {
@Resource
private StringRedisTemplate stringRedisTemplate;
ResourceRateLimitConfigService resourceRateLimitConfigService;
@BeforeAll
void beforeAllTests() {
resourceRateLimitConfigService = new ResourceRateLimitConfigService();
}
@Test
void initTest() throws InterruptedException {
System.err.println(redisProperties);