摘要: 假设需要往YesNoEnum枚举类中注入User对象 public enum YesNoEnum { YES(1,"yes"), NO(0,"no"); private Integer code; private String name; // 注入user对象 private User user; 阅读全文
posted @ 2020-06-17 17:18 link_ed 阅读(2655) 评论(0) 推荐(1) 编辑