摘要: 使用 clone()方法的类必须 implement Cloneable 如果没有继承,clone()方法会报错 java.lang.CloneNotSupportedException异常 阅读全文
posted @ 2019-12-23 18:11 java.matt 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 创建doc的方式不同,需要增加 DocumentBuilderFactory.setNamespaceAware(true); 这样Element Node.getNamespaceURI 才不为空 DocumentBuilderFactory factory = DocumentBuilderFa 阅读全文
posted @ 2019-12-23 00:10 java.matt 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 多模块 只有需要编译成jar的模块才设置build 特别父模块为pom的不需要设置build 公共模块common 如何设置build common项目的pom导入了spring-boot-maven-plugin插件,导致打的common jar包与平时的jar包不同。当该jar包被其他模块依赖, 阅读全文
posted @ 2019-12-20 18:31 java.matt 阅读(358) 评论(0) 推荐(0) 编辑
摘要: <aop:aspectj-autoproxy/> 配置aspectj启动 AspectJAutoProxyBeanDefintionParser implements BeanDefinitionParser 配置AnnotationAwareAspectJAutoProxyCreator类到Bea 阅读全文
posted @ 2019-12-18 18:34 java.matt 阅读(368) 评论(0) 推荐(0) 编辑
摘要: <context:annotation-config/> 解析上面标签,运行下面解析 AnnotationConfigBeanDefinitioinParser implements BeanDefinitionParser{ public BeanDefinition parse(Element 阅读全文
posted @ 2019-12-12 18:07 java.matt 阅读(158) 评论(0) 推荐(0) 编辑
摘要: org.springframework.beans.factory.annotation.Autowired AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter public 阅读全文
posted @ 2019-12-11 16:49 java.matt 阅读(790) 评论(0) 推荐(0) 编辑
摘要: <context:component-scan base-package="com.matt.cloud"/> bean-context中 spring.handlers文件 http\://www.springframework.org/schema/context=org.springframe 阅读全文
posted @ 2019-12-11 00:18 java.matt 阅读(765) 评论(0) 推荐(0) 编辑
摘要: Servlet 是什么 有哪些类 阅读全文
posted @ 2019-12-08 22:08 java.matt 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 使用 httpclient.4.5.6 springboot 2.0.8RELEASE RetryExec.java CloseableHttpResponse execute() try { return this.requestExecutor.execute(route, request, c 阅读全文
posted @ 2019-12-05 20:27 java.matt 阅读(3468) 评论(0) 推荐(0) 编辑
摘要: https://www.ibm.com/developerworks/cn/java/j-groovierspring2.html 阅读全文
posted @ 2019-12-03 18:35 java.matt 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: 获取修改时间 long lastTime = file.lastModified(); 原文链接:https://blog.csdn.net/liuyueyi25/article/details/79292971 现在的问题时,我需要在这个文件的内容发生变动时,应用可以感知这种变动,并重新加载文件内 阅读全文
posted @ 2019-12-03 14:53 java.matt 阅读(3426) 评论(0) 推荐(1) 编辑
摘要: https://docs.spring.io/spring/docs/5.1.6.RELEASE/spring-framework-reference/languages.html#dynamic-language 阅读全文
posted @ 2019-12-03 11:31 java.matt 阅读(139) 评论(0) 推荐(0) 编辑
摘要: DefaultResourceLoader -- > ResourceLoader 方法 ResourceLoader getResource(String location); ClassLoader getClassLoader(); ResourceLoader用来获取Resource和Cla 阅读全文
posted @ 2019-12-02 18:31 java.matt 阅读(286) 评论(0) 推荐(0) 编辑
摘要: BeanFactoryPostProcessor PriorityOrdered | | PropertyPlaceholderConfigurer --> PlaceholderConfigurerSupport --> PropertyResourceConfigurer -- > proper 阅读全文
posted @ 2019-12-02 18:16 java.matt 阅读(171) 评论(0) 推荐(0) 编辑
摘要: BeanFactoryPostProcessor的应用 最常用的一个应用就是org.springframework.beans.factory.config.PropertyPlaceholderConfigurer,BeanDefinition生成后,可能某些参数是${key},这个实现类就是把前 阅读全文
posted @ 2019-11-28 18:12 java.matt 阅读(114) 评论(0) 推荐(0) 编辑