12 2019 档案

摘要:一、springboot项目中有两种配置文件 springboot项目中有两种配置文件 bootstrap 和 application bootstrap是应用程序的父上下文,由父Spring ApplicationContext加载。所以加载顺序优先于application。 bootstrap 阅读全文
posted @ 2019-12-18 13:48 皮肤黝黑的小白 阅读(845) 评论(0) 推荐(3) 编辑
摘要:实现过程: 1.pom引包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 2.写你的aspect @Asp 阅读全文
posted @ 2019-12-18 10:48 皮肤黝黑的小白 阅读(468) 评论(0) 推荐(0) 编辑
摘要:一、委派模式的定义及应用场景 委派模式(Delegate Pattern)的基本作用是负责任务的调用和分配,跟代理模式很像,可以看做特殊情况下的静态的全权代理,但是代理模式注重过程,而委派模式注重结果。委派模式在Spring中的应用很多,比如:DispatcherServlet。用现实中的案例就是: 阅读全文
posted @ 2019-12-02 20:00 皮肤黝黑的小白 阅读(845) 评论(0) 推荐(0) 编辑

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