廖井涛
2024-05-11 91f291a2c3b4e41fc0b44f2395ad5c956803ee8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.example.erp;
 
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
@SpringBootTest
class ErpApplicationTests {
 
    @Test
    void contextLoads() {
        String.valueOf("1.0").replaceAll("\\.0*$|(\\.\\d*?)0+$", "$1");
    }
 
}