package com.example.erp; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.redis.core.StringRedisTemplate; import static org.apache.tomcat.jni.Lock.trylock; @SpringBootTest class ErpApplicationTests { @Autowired private StringRedisTemplate stringRedisTemplate; @Test void contextLoads() { String.valueOf("1.0").replaceAll("\\.0*$|(\\.\\d*?)0+$", "$1"); } @Test void test() { int x =100; System.out.println(6.5+x/8); // stringRedisTemplate.opsForValue().set("test", "test"); // Object test = stringRedisTemplate.opsForValue().get("test"); } }