12 2019 档案
摘要:AppClassLoader AppClassLoader应用类加载器,又称系统类加载器,负责在JVM启动时加载来自命令java中的classpath或者java.class.path系统属性或者CLASSPATH操作系统属性所指定的JAR类包和类路径 Bootstrap ClassLoder、Ex
阅读全文
摘要:虚拟机团队把类加载阶段中的“通过一个类的全限定名来获取描述此类的二进制字节流”这个动作放到Java虚拟机的外部去实现,以便让应用程序自己决定如何去获取所需要的类。 实现这个动作的代码模块称为“类加载器”。 问题:这个动作放到虚拟机的外部实现,是如何放到虚拟机外部实现的, 什么样是虚拟机外部 类从被加
阅读全文
摘要:使用 clone()方法的类必须 implement Cloneable 如果没有继承,clone()方法会报错 java.lang.CloneNotSupportedException异常
阅读全文
摘要:创建doc的方式不同,需要增加 DocumentBuilderFactory.setNamespaceAware(true); 这样Element Node.getNamespaceURI 才不为空 DocumentBuilderFactory factory = DocumentBuilderFa
阅读全文
摘要:多模块 只有需要编译成jar的模块才设置build 特别父模块为pom的不需要设置build 公共模块common 如何设置build common项目的pom导入了spring-boot-maven-plugin插件,导致打的common jar包与平时的jar包不同。当该jar包被其他模块依赖,
阅读全文
摘要:<aop:aspectj-autoproxy/> 配置aspectj启动 AspectJAutoProxyBeanDefintionParser implements BeanDefinitionParser 配置AnnotationAwareAspectJAutoProxyCreator类到Bea
阅读全文
摘要:<context:annotation-config/> 解析上面标签,运行下面解析 AnnotationConfigBeanDefinitioinParser implements BeanDefinitionParser{ public BeanDefinition parse(Element
阅读全文
摘要:org.springframework.beans.factory.annotation.Autowired AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter public
阅读全文
摘要:<context:component-scan base-package="com.matt.cloud"/> bean-context中 spring.handlers文件 http\://www.springframework.org/schema/context=org.springframe
阅读全文
摘要:使用 httpclient.4.5.6 springboot 2.0.8RELEASE RetryExec.java CloseableHttpResponse execute() try { return this.requestExecutor.execute(route, request, c
阅读全文
摘要:https://www.ibm.com/developerworks/cn/java/j-groovierspring2.html
阅读全文
摘要:获取修改时间 long lastTime = file.lastModified(); 原文链接:https://blog.csdn.net/liuyueyi25/article/details/79292971 现在的问题时,我需要在这个文件的内容发生变动时,应用可以感知这种变动,并重新加载文件内
阅读全文
摘要:https://docs.spring.io/spring/docs/5.1.6.RELEASE/spring-framework-reference/languages.html#dynamic-language
阅读全文
摘要:DefaultResourceLoader -- > ResourceLoader 方法 ResourceLoader getResource(String location); ClassLoader getClassLoader(); ResourceLoader用来获取Resource和Cla
阅读全文
摘要:BeanFactoryPostProcessor PriorityOrdered | | PropertyPlaceholderConfigurer --> PlaceholderConfigurerSupport --> PropertyResourceConfigurer -- > proper
阅读全文