| | |
| | | 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; |
| | | @Test |
| | | void contextLoads() { |
| | | System.out.println(passwordEncoder.encode("666666")); |
| | | } |
| | | @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) { |
| | | |
| | | |
| | | } |
| | | |
| | | } |