通过一条SQL真正理解 JoinPoint和PointCut
2024年4月6日
没有评论
update emp t set t.salary = 100 where dep_id = 100
- emp 就是java中的一个类。
-
emp表的中数据可以看作是类中的方法,如果emp有10条数据,就代表这个类有10个方法。
-
每条数据都是JoinPoint,对应Java类中的每个方法都是一个J[......]
update emp t set t.salary = 100 where dep_id = 100
emp表的中数据可以看作是类中的方法,如果emp有10条数据,就代表这个类有10个方法。
每条数据都是JoinPoint,对应Java类中的每个方法都是一个J[......]
打车回家,同时叫多辆网约车,相应最快的网约车可以抢到订单,其他网约车抢单是失败。
数据类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
/**
* 网约车名字[......]