摘要:
整合mybatis需要导入的依赖: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope></dependency><depend 阅读全文
posted @ 2022-03-13 12:01
微笑阿凡达
阅读(36)
评论(0)
推荐(0)
摘要:
使用AOP植入,需要导入依赖包 <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver --><dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjwe 阅读全文
posted @ 2022-03-13 11:05
微笑阿凡达
阅读(45)
评论(0)
推荐(0)
摘要:
为什么要学习静态代理? //因为静态代理就是springAOP的底层 //代理模式:静态代理,动态代理 //静态代理 流程:1.接口 也就是图中的租房 2.真实角色 房东 3.代理角色 中介 4.客户端 我 优缺点: 第三步:动态生成代理类 阅读全文
posted @ 2022-03-13 10:46
微笑阿凡达
阅读(21)
评论(0)
推荐(0)
摘要:
@configuration 就是一个配置类,和beans.xml是一样的 阅读全文
posted @ 2022-03-13 08:59
微笑阿凡达
阅读(22)
评论(0)
推荐(0)