摘要: 转自: Mybatis中使用association进行关联的几种方式 这里以一对一单向关联为例。对使用或不使用association的配置进行举例。 实体类: @Data @ToString @NoArgsConstructor public class IdCard { private Integ 阅读全文
posted @ 2022-03-27 18:58 Angel挤一挤 阅读(1598) 评论(0) 推荐(0) 编辑
摘要: 1.声明 某个Bean 仅在一定条件下 才初始化Bean,否则 就不初始化。 import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotat 阅读全文
posted @ 2022-03-27 11:44 Angel挤一挤 阅读(1137) 评论(0) 推荐(0) 编辑