| | |
| | | import com.lf.server.mapper.bd.DlgAgnpMapper; |
| | | import com.lf.server.service.all.PermsService; |
| | | import com.lf.server.service.sys.ArgsService; |
| | | import com.lf.server.service.sys.BlacklistService; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | PermsService permsService; |
| | | |
| | | @Autowired |
| | | BlacklistService blacklistService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | |
| | | //testMybatisPlus(); |
| | | //testAes(); |
| | | //testPerms(); |
| | | //testBlacklist(); |
| | | |
| | | //boolean f1 = ZipHelper.unzip("D:\\LF\\data\\resources.zip", "D:\\LF\\data\\unzip"); |
| | | //boolean f2 = ZipHelper.zip("D:\\LF\\data\\res.zip", "D:\\LF\\data\\unzip\\resources"); |
| | |
| | | pauList = permsService.selectPermsEntity("admin"); |
| | | permsService.clearAllCache(); |
| | | } |
| | | |
| | | private void testBlacklist() { |
| | | List<String> list1 = blacklistService.selectIpList(1); |
| | | List<String> list2 = blacklistService.selectIpList(1); |
| | | List<String> list3 = blacklistService.selectIpList(2); |
| | | List<String> list4 = blacklistService.selectIpList(2); |
| | | blacklistService.clearCache(); |
| | | List<String> list5 = blacklistService.selectIpList(1); |
| | | } |
| | | } |