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 strings = poleService.listDeviceCodeByIds(CollectionUtil.toList(1L, 6L)); System.out.println(strings); } public static void main(String[] args) { } }