啊鑫
2025-04-15 8688b44b9e0c7403f6eca6180d30b38889d6e775
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
package com.gs.xiaomi;
 
import com.gs.xiaomi.service.XM104Service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
 
@SpringBootTest
class XiaomiApplicationTests {
 
    @Autowired
    private XM104Service xm104Service;
 
    @Test
    void contextLoads() throws Exception {
        xm104Service.getDb();
    }
 
    @Test
    void test() {
        String str = ",,";
        String[] parts = str.split(",");
        for (String part : parts) {
            System.out.println(part);
        }
    }
}