03 2022 档案

摘要:首先需要先把数据缓存在redis里面 工具类 /** * 缓存List数据 * @param key * @param value * @param <T> */ public <T> void setDataInfo(final String key, final T value ){ Long 阅读全文
posted @ 2022-03-24 20:31 小样儿i 阅读(494) 评论(0) 推荐(0) 编辑
摘要:/** * excel表中的数据添加进sql中的工具类 */ public List<Object> getPage(MultipartFile multipartFile, int num) throws IOException { List<Object> listPage = new Arra 阅读全文
posted @ 2022-03-22 11:45 小样儿i 阅读(685) 评论(0) 推荐(1) 编辑
摘要:<!DOCTYPE html><html lang="en" xmlns:th="http://www.thymeleaf.org"><head> <meta charset="UTF-8"> <title>file</title></head><body><h1>文件列表</h1><table b 阅读全文
posted @ 2022-03-18 14:25 小样儿i 阅读(246) 评论(0) 推荐(0) 编辑
摘要:mkdir():只能创建一层目录 例如:File file = new File("e:/test") file.mkdir(); 这样就会在e盘创建test目录 mkdirs():创建多层目录 例如:File file = new File("e:/model/test"); file.mkdir 阅读全文
posted @ 2022-03-18 10:02 小样儿i 阅读(327) 评论(0) 推荐(0) 编辑
摘要:@RestController和@Controller的共同点就是都可以表示spring某个类是否可以接收http请求。(红色字体是两个的区别) @RestController可以看作是@Controller和@ResponseBody的组合,无法返回指定页面,可以直接返回数据 @Controlle 阅读全文
posted @ 2022-03-17 11:32 小样儿i 阅读(737) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示