@Autowired@Qualifier("xiaohon")autowired 依据type装配,如果有多个相同的type的bean需要使用qualifier指定具体的类 <bean class="pojo.People" ><!-- <qualifier value="xiohon"/>--> ...
分类:
编程语言 时间:
2021-05-24 08:57:56
阅读次数:
0
Spring Security 入门(基本使用) 这几天看了下b站关于 spring security 的学习视频,不得不说 spring security 有点复杂,脑袋有点懵懵的,在此整理下学习内容。 1、入门 1.1、什么是 spring security spring security 是一 ...
分类:
编程语言 时间:
2021-05-24 08:31:15
阅读次数:
0
@Component classA{ @Autowire private ClassB classB; } @Component classB{ @Autowire private ClassA classA; } 代码执行流程 首先进入org.springframework.beans.facto ...
分类:
编程语言 时间:
2021-05-24 08:23:12
阅读次数:
0
设置 http 代理 socks5 协议代理 git config --global http.proxy 'socks5://127.0.0.1:10808' git config --global https.proxy 'socks5://127.0.0.1:10808' http / htt ...
分类:
其他好文 时间:
2021-05-24 08:22:53
阅读次数:
0
反向代理实例二 实现效果:使用 nginx 反向代理,根据访问的路径跳转到不同端口的服务中nginx 监听端口为 9001, 访问 http://127.0.0.1:9001/dev/ 直接跳转到 127.0.0.1:8081访问 http://127.0.0.1:9001/test/ 直接跳转到 ...
分类:
其他好文 时间:
2021-05-24 08:12:32
阅读次数:
0
整合feign 首先需要在下单的服务中整合 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.2.3 ...
分类:
其他好文 时间:
2021-05-24 07:39:25
阅读次数:
0
源码:https://github.com/xuxueli/xxl-job 按文档启动xxl-job-admin后,可以自己写执行器 执行器: 新建springboot服务 选中spring web、Mysql Driver、JDBC API、Mybatis Framework等依赖 pom.xml ...
分类:
其他好文 时间:
2021-05-24 07:07:54
阅读次数:
0
该系列文章是本人在学习 Spring 的过程中总结下来的,里面涉及到相关源码,可能对读者不太友好,请结合我的源码注释 Spring 源码分析 GitHub 地址 进行阅读。 Spring 版本:5.1.14.RELEASE 在开始阅读 Spring AOP 源码之前,需要对 Spring IoC 有 ...
分类:
编程语言 时间:
2021-05-24 06:47:42
阅读次数:
0
execution表达式 * 在AOP的配置中需要配置切入点,那么就需要配置切入点所需要切入的位置 ,需要通过execution表达式来实现。 <aop:config> <aop:pointcut id="pointcut" expression="execution(* com.shi.servi ...
分类:
编程语言 时间:
2021-05-24 06:39:46
阅读次数:
0
1、在pom文件中先导入生成图像的依赖包 <dependency> <groupId>com.baomidou</groupId> <artifactId>kaptcha-spring-boot-starter</artifactId> <version>1.0.0</version> </depe ...
分类:
其他好文 时间:
2021-05-24 06:35:16
阅读次数:
0