07 2020 档案

摘要:测试环境代码: @Configuration @ComponentScan("com.yang.xiao.hui.ioc") @Conditional(MyCondition.class) public class App { public static void main( String[] ar 阅读全文
posted @ 2020-07-31 17:22 yangxiaohui227 阅读(216) 评论(0) 推荐(0) 编辑
摘要:一.测试环境的搭建: public class Apple { } @Component public class MyComponet { } public class MyCondition implements Condition { @Override public boolean matc 阅读全文
posted @ 2020-07-30 16:32 yangxiaohui227 阅读(565) 评论(0) 推荐(0) 编辑
摘要:一.源码环境的搭建: @Component @Scope(scopeName = ConfigurableBeanFactory.SCOPE_SINGLETON,proxyMode = ScopedProxyMode.TARGET_CLASS) public class MyMath impleme 阅读全文
posted @ 2020-07-30 12:33 yangxiaohui227 阅读(932) 评论(0) 推荐(0) 编辑
摘要:在上一篇aop源码分析时,我们已经分析了一个bean被代理的详细过程,参考:https://www.cnblogs.com/yangxiaohui227/p/13266014.html 本次主要是分析目标方法的执行过程: 测试代码在git : https://gitee.com/yangxioahu 阅读全文
posted @ 2020-07-09 12:50 yangxiaohui227 阅读(244) 评论(0) 推荐(0) 编辑
摘要:测试项目已上传到码云,可以下载:https://gitee.com/yangxioahui/aopdemo.git 具体如下: public interface Calc { Integer add(int num1,int num2); }//目标是对add 方法进行切入 @Component p 阅读全文
posted @ 2020-07-08 11:36 yangxiaohui227 阅读(329) 评论(0) 推荐(0) 编辑
摘要:测试环境搭建: 本次搭建是基于springboot来实现的,代码在码云的链接:https://gitee.com/yangxioahui/thymeleaf.git DispatcherServlet核心流程在上一篇源码分析已经做了详细讲解 了,参考: https://www.cnblogs.com 阅读全文
posted @ 2020-07-04 15:27 yangxiaohui227 阅读(913) 评论(0) 推荐(0) 编辑
摘要:测试环境搭建: 本次搭建是基于springboot来实现的,代码在码云的链接:https://gitee.com/yangxioahui/thymeleaf.git 项目结构代码如下: 一: controller的三种实现方式: 1. 第一种是大家非常熟悉的,使用@Controller和@Reque 阅读全文
posted @ 2020-07-03 11:33 yangxiaohui227 阅读(293) 评论(0) 推荐(0) 编辑
摘要:服务端: package com.yang.runnable; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.*; 阅读全文
posted @ 2020-07-01 10:11 yangxiaohui227 阅读(216) 评论(0) 推荐(0) 编辑

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