04 2018 档案

摘要:刚刚接手的一个项目,接到一个对接用户数据的需求,对方使用的是xml格式来传输文件,特此记下解析该类文件的方法 public interface XmlResolver { XStream builder(); default T parse(String xml){ return (T) build 阅读全文
posted @ 2018-04-15 19:11 SheaChen 阅读(3279) 评论(0) 推荐(0) 编辑
摘要:ArrayBlockingQueue ArrayBlockingQueue是Java多线程常用的线程安全的一个集合,基于数组实现,继承自AbstractQueue,实现了BlockingQueue和Serializable接口。 //先看看器内部的成员变量: private static final 阅读全文
posted @ 2018-04-03 21:10 SheaChen 阅读(2671) 评论(0) 推荐(0) 编辑
摘要:基本实现代码: public class TestMain { public static void main(String[] args) throws IOException { //资源解析器 ResourcePatternResolver resolver = new PathMatchin 阅读全文
posted @ 2018-04-02 08:19 SheaChen 阅读(175) 评论(0) 推荐(0) 编辑
摘要:使用了很长时间的springboot了,一直都知道它简单易用,简化了框架的搭建过程,但是还是不知道它是如何启动的,今天就跟着springboot的源码,去探探这其中的奥妙 以下是spring应用的启动: @SpringBootApplication public class Application 阅读全文
posted @ 2018-04-02 08:18 SheaChen 阅读(2065) 评论(1) 推荐(0) 编辑

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