2021与蓝度共同重构项目,服务端
chenjiantian
2021-12-16 0f98ec728d0403b1726273d94dc00f06993888b6
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
package com.sandu.ximon.admin;
 
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;
 
@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() {
        System.out.println(poleService.generatePoleCode());
    }
 
    public static void main(String[] args) {
 
 
    }
 
}