2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-04-13 aee78de39e2d957a0c4a91f75ab9f77b03e46af3
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.sandu.ximon.admin;
 
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.crypto.SecureUtil;
import com.sandu.ximon.admin.service.PoleService;
import org.junit.jupiter.api.Test;
import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;
 
import java.util.List;
 
@SpringBootTest
class AdminApplicationTests {
 
    @Autowired
    private PasswordEncoder passwordEncoder;
    @Autowired
    private PoleService poleService;
 
    @Test
    void contextLoads() {
        //ae8b5aa26a3ae31612eec1d1f6ffbce9
        String encode = SecureUtil.md5("66666");
        String encode2 = passwordEncoder.encode(encode);
        System.out.println(encode);
        System.out.println(encode2);
    }
 
    @Test
    void poleService() {
        List<String> strings = poleService.listDeviceCodeByIds(CollectionUtil.toList(1L, 6L));
        System.out.println(strings);
    }
 
    public static void main(String[] args) {
 
 
    }
 
}