摘要: https://www.cnblogs.com/flashsun/p/14368520.html 阅读全文
posted @ 2021-02-06 16:18 飘若逸 阅读(42) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/panjun-Donet/archive/2008/09/27/1300609.html 阅读全文
posted @ 2021-02-04 19:11 飘若逸 阅读(64) 评论(0) 推荐(0)
摘要: 看到这个面试官的博客发现自己对于java面试一点都不了解。mark下说话思路和说话的预先埋下的坑 https://www.cnblogs.com/JavaArchitect/p/14247947.html 阅读全文
posted @ 2021-01-11 09:57 飘若逸 阅读(61) 评论(0) 推荐(0)
摘要: /** * 拷贝文件夹到文件夹 * * */private void copyDirectory(File oldFile,String newFile){ if (oldFile.isDirectory()){ //copy 文件夹 File[] files = oldFile.listFiles 阅读全文
posted @ 2020-12-31 17:20 飘若逸 阅读(190) 评论(0) 推荐(0)
摘要: 遇到obj对象需要转成其他类型的对象,其他类型后续再加public class ObjectUtil { public static Map<String, Object> beanToMap(Object bean) { return beanToMap(bean, false); } publi 阅读全文
posted @ 2020-12-31 17:13 飘若逸 阅读(812) 评论(0) 推荐(0)
摘要: 递归过去文件夹下所有文件目录private void getFileList(List<File> fileList, String path) { File dirFile = new File(path); File[] files = dirFile.listFiles(); Assert.n 阅读全文
posted @ 2020-12-31 17:08 飘若逸 阅读(138) 评论(0) 推荐(0)
摘要: 引用 :https://www.cnblogs.com/suntianliang/p/11656928.html 阅读全文
posted @ 2020-12-03 09:23 飘若逸 阅读(1914) 评论(0) 推荐(0)
摘要: 让我们考虑以下要求:我们想找出字符串“ABCDELMN”和“ABCFGLMN”之间的区别。 根据需要输出的格式,忽略编写自定义代码的可能性,我们发现有两个主要选项可用。 第一个是Google编写的diff match patch库。正如他们所说,这个库提供了同步纯文本的健壮算法。 另一个选项是Apa 阅读全文
posted @ 2020-12-03 09:08 飘若逸 阅读(664) 评论(0) 推荐(0)
摘要: 1、@Controller 表明这个类是一个控制器类,和@RequestMapping来配合使用拦截请求,如果不在method中注明请求的方式,默认是拦截get和post请求。这样请求会完成后转向一个视图解析器。但是在大多微服务搭建的时候,前后端会做分离。所以请求后端只关注数据处理,后端返回json 阅读全文
posted @ 2020-06-02 17:13 飘若逸 阅读(183) 评论(0) 推荐(0)
摘要: 1、@SpringBootApplication 注解 查看源码可发现,@SpringBootApplication是一个复合注解,包含了@SpringBootConfiguration,@EnableAutoConfiguration,@ComponentScan这三个注解。 这三个注解的作用分别 阅读全文
posted @ 2020-06-02 17:09 飘若逸 阅读(204) 评论(0) 推荐(0)