随笔分类 -  SpringBoot

摘要:SpringBoot 自动装配源码解析 step1: SpringApplication.run(ZylSpringBootApplication.class,args); step2: this.refreshContext(context); --> org.springframework.bo 阅读全文
posted @ 2022-11-28 18:15 Acaak 阅读(53) 评论(0) 推荐(0) 编辑
摘要:1.创建SpringApplication对象 1.1 webApplicationType设置 (SERVLET) webApplicationType 有三种类型,REACTIVE、SERVLET、NONE 引入 spring-boot-starter-web 包,就是 SERVLET 引入 s 阅读全文
posted @ 2022-11-16 16:09 Acaak 阅读(286) 评论(0) 推荐(0) 编辑
摘要:引用:https://blog.csdn.net/qq_45515182/article/details/126330084 (直接看Spring AOP + 自定义注解) 下面我们阅读下AbstractRoutingDataSource的源码,逻辑还是挺简单的 AbstractRoutingDat 阅读全文
posted @ 2022-10-26 15:42 Acaak 阅读(58) 评论(0) 推荐(0) 编辑
摘要:Spring boot配置Druid 1.引入相关依赖 <!-- Druid数据库连接池组件 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.0.18</version 阅读全文
posted @ 2022-10-21 10:56 Acaak 阅读(251) 评论(0) 推荐(0) 编辑
摘要:过滤器 过滤器Filter,是Servlet的的一个实用技术了。可通过过滤器,对请求进行拦截,比如读取**session判断用户是否登录**、判断访问的**请求URL是否有访问权限(黑白名单)**等。主要还是可对请求进行预处理。接下来介绍下,在springboot如何实现过滤器功能。 1.利用Web 阅读全文
posted @ 2022-10-20 16:59 Acaak 阅读(814) 评论(0) 推荐(0) 编辑
摘要:@Autowired private ApplicationArguments applicationArguments; @Autowired private ApplicationContext applicationContext; main方法通过ApplicationArguments获取 阅读全文
posted @ 2022-10-19 11:51 Acaak 阅读(558) 评论(0) 推荐(0) 编辑
摘要:看文档学习更加全面啦 中文: https://www.springcloud.cc/spring-boot.html 英文:https://docs.spring.io/spring-boot/docs/current/reference/pdf/ 阅读全文
posted @ 2022-10-18 13:51 Acaak 阅读(87) 评论(1) 推荐(0) 编辑

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