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