上一页 1 2 3 4 5 6 7 ··· 167 下一页
摘要: onRefresh(); protected void onRefresh() { try { createEmbeddedServletContainer(); } } private void createEmbeddedServletContainer() { EmbeddedServletContaine... 阅读全文
posted @ 2019-11-18 12:41 无天666 阅读(472) 评论(0) 推荐(0)
摘要: <context:component-scan base-package="com.zhuguang.jack" <!-- 扫描的基本包路径 --> annotation-config="true" <!-- 是否激活属性注入注解 --> name-generator="org.springframework.context.annotation.AnnotationBeanNameGenerat 阅读全文
posted @ 2019-11-13 16:36 无天666 阅读(328) 评论(0) 推荐(0)
摘要: protected int doLoadBeanDefinitions(InputSource inputSource, Resource resource) { try { Document doc = doLoadDocument(inputSource, resource); return registerBeanDefini... 阅读全文
posted @ 2019-11-12 20:33 无天666 阅读(398) 评论(0) 推荐(0)
摘要: 事务就是AOP的很典型的应用。(原来需要自己写代码前开启关闭事务,现在通过spring的配置) 所以必要要有<aop:config>,<aop:config>里面要有<aop:pointcut>,<aop:pointcut>就是拦截的表达式(匹配哪些方法要拦截),还要有<aop:advisor>这是切面,切面里面要有pointcut-ref, advice-ref。advice-ref是一个增强, 阅读全文
posted @ 2019-11-12 19:56 无天666 阅读(514) 评论(0) 推荐(0)
摘要: <aop:config> 标签的解析: <bean id="loggingAspect" class="com.zhuguang.jack.aop.aspect.AspectXml1"></bean> <aop:config> <aop:pointcut id="pointcut" expression="execution(* com.zhuguang.jack.aop.aspect.Aspec 阅读全文
posted @ 2019-11-01 14:50 无天666 阅读(413) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:config" + "/spring/applicationContext-core2.xml"); MyS... 阅读全文
posted @ 2019-11-01 14:34 无天666 阅读(2499) 评论(0) 推荐(0)
摘要: aspectAnnotation的切面信息,加到了AnnotationAwareAspectJAutoProxyCreator的advisorsCache属性里面去了。 解析annotationServiceImpl的时候(此时AspectAnnotation还没有解析),resolveBefore 阅读全文
posted @ 2019-11-01 14:17 无天666 阅读(405) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/u010407050/article/details/76690478 1.在你的D:盘新建jdk文件夹,然后在文件夹里面分别创建两个文件夹jdk_src(存放源码)和jdk_debug(存放编译结果文件)。 2.从%JAVA_HOME%路径下找到src. 阅读全文
posted @ 2019-10-29 10:31 无天666 阅读(214) 评论(0) 推荐(0)
摘要: public interface People { public String eat(String param); } public class Jack implements People { @Override public String eat(String param) { System.out.println("=========Jack老师... 阅读全文
posted @ 2019-10-28 08:58 无天666 阅读(261) 评论(0) 推荐(0)
摘要: IOC:前面都是对bean定义的处理,postProcess已经实例化了。 解析bean的时候,把需要依赖注入的字段和方法,在postProcessMergedBeanDefinition方法中加到AutowiredAnnotationBeanPostProcessor的变量中,然后在AutowiredAnnotationBeanPostProcessor的作为入口,去依赖注入字段和方法。 p... 阅读全文
posted @ 2019-10-23 19:31 无天666 阅读(177) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 167 下一页