-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
`public class Account {
/**
* 用户号码
*/
private long phoneNo;
/**
* 账户余额
*/
private Money remaining;
/**
* 账户所拥有的套餐
*/
@JsonIgnore
private List<ChargePlan> chargePlanList = new ArrayList<>();;
@Resource
private AccountGateway accountGateway;`
这里的@resource方式注入AccountGateway,是如何实现注入的?我看生成Account时候这个属性没有设置,不知道是通过什么机制注入的。
Metadata
Metadata
Assignees
Labels
No labels