- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 关于spring框架中,junit单元测试时通过spring注入的对象为空
关于spring框架中,JUnit测试问题/** * @Author: Ron * @Create: 2020 8:47 */@Configuration@Component@ComponentScan(basePackages = {"com.test.spring5"})public class SpringConfig { @Bean("www") public UserDaoImpl test01(){ System.out.println("bea
2020-12-26 10:16:46 11440 1
原创 spring AOP面向切面编程
spring AOP面向切面编程AOP:Aspect Oriented Programing 面向切面编程面向切面编程指的是:程序是运行期间,动态地将某段代码插入到原来方法代码的某些位置中。这就叫面向切面编程。AOP采用横向抽取机制,取代了传统纵向继承体系抽取重复性代码(性能监视、事务管理、安全检查、缓存)面向对象纵向继承机制面向切面横向抽取机制AOP面向切面编程的底层原理就是代理动态代理的方式有两种:基于接口实现动态代理: JDK动态代理基于继承实现动态代理:CGLIB代理优先使用接
2020-12-25 17:00:43 7273 1
原创 spring注解开发
spring注解前言相关面试题前期准备1.管理bean的四类注解1.1.用于创建bean对象[email protected].@Controller @Service @Repository面试题:@Component、@Controller、@Service、@Repository有何区别?1.2.用于给对象中的属性注入值[email protected][email protected][email protected].@Resource面试题:@Autowired和@Resource的区别?1
2020-12-24 12:50:40 7320
原创 Spring中的Ioc和DI
Spring学习总结提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加例如:第一章 Python 机器学习入门之pandas的使用https://blog.csdn.net/qq_35080796/article/details/111355515提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录Spring学习总结前言Spring概念?1.The IoC Container2.Spring AOP APIs总结前言使用的Spring的版本是5.2,
2020-12-23 17:24:14 7218 1
原创 为什么Redis不支持回滚
redis的使用为什么Redis不支持回滚?(来自官网)Why Redis does not support roll backs?If you have a relational databases background, the fact that Redis commands can fail during a transaction, but still Redis will execute the rest of the transaction instead of rolling back
2020-12-18 13:44:27 7460
原创 Spring jar包官方下载地址及方法
Spring jar包官方下载地址及方法1 spring jar包下载地址2 下载方法spring官网jar包下载方法(找起来还是比较好玩的)1 spring jar包下载地址不想自己去玩的,这是jar包下载地址:https://repo.spring.io/release/org/springframework/spring/2 下载方法step 1:Spring官网,进入Spring框架的github链接spring官网:https://spring.io/step 2:git
2020-12-18 11:56:03 22924 3
AspectJ相关jar包.rar
2020-12-26
spring5.2.6和日志jar包.rar
2020-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人