guoyujie
2025-11-20 047b0d701c227bc65adf05ffe1183f7ded3de88c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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");
    }
 
}