随笔分类 -  JAVA

摘要:原因 因为公司的项目一直用的都是分布式项目,而我只知道用,却不知道怎么去搭建,就整的很烦,逐渐暴躁。这两天一直都在找怎么搭建,因为自己的原因,所以一直搭建不成功,来来回回删了五六遍,也重建了很多次。 推荐 万幸我一直没有放弃,搜了两个文章,结合去搭建,终于成功。 dubbo项目搭建:https:// 阅读全文
posted @ 2021-11-16 19:19 学习就是进步! 阅读(827) 评论(1) 推荐(1)
摘要:1、首先要准备一个可以查询文件和分类的工具类 /** * 查询文件 * @param file 目标路径 * @param list 装查询的文件容器 * @throws IOException */ public static void queryAllFile(File file, List<M 阅读全文
posted @ 2021-09-02 17:01 学习就是进步! 阅读(444) 评论(0) 推荐(0)
摘要:logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>读取txt开始"); File file = new File(filepath); try { if (file.isFile() && file.exists()) { InputStreamReader read = 阅读全文
posted @ 2021-09-02 12:35 学习就是进步! 阅读(467) 评论(0) 推荐(0)
摘要:@RequestMapping(value = "/upload", method = RequestMethod.POST) public String upload(MultipartFile file, HttpServletRequest request) { String path = l 阅读全文
posted @ 2019-12-17 21:52 学习就是进步! 阅读(193) 评论(0) 推荐(0)
摘要:<!--aliyun短信sdk--> <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>4.1.0</version> </dependency> imp 阅读全文
posted @ 2019-12-16 14:10 学习就是进步! 阅读(613) 评论(0) 推荐(0)
摘要:想到以后要讲图片随着每天存储到不同的文件夹,就想着创建一个跟随日期的文件夹的方法,为自己以后的毕设做准备,以下是方法: import java.util.Date; import java.text.SimpleDateFormat; class file{ final static String 阅读全文
posted @ 2019-11-18 17:51 学习就是进步! 阅读(422) 评论(0) 推荐(0)