-
MyBatisPlus中使用 @TableField完成字段自动填充
在进行插入操作时对添加了注解@TableField(fill = FieldFill.INSERT)的字段进行自动填充。
对添加了注解@TableField(fill = FieldFill.INSERT_UPDATE)的字段在进行插入和更新时进行自动填充。
如何配置自动填充的值:看大佬:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/89450006?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param -
@jsonformat的使用
看大佬:https://www.cnblogs.com/cangqinglang/p/10083661.html
http://791202.com/2020/01/05/spring/250/ -
测试要加如下两个注释:
@RunWith(SpringRunner.class)
在使用所有注释前必须使用@RunWith(SpringJUnit4ClassRunner.class),让测试运行于Spring测试环境 Spring框架在org.springframework.test.annotation 包中提供
SpringRunner 继承了SpringJUnit4ClassRunner,没有扩展任何功能;使用前者,名字简短而已。
@SpringBootTest(classes = Application.class) @SpringBootTest添加参数是为了将指定类加载到测试环境中去 -
@Autowired和@Resource的区别 https://blog.csdn.net/GaoXiR/article/details/107401690
-
mybatis-plus 配置说明:https://blog.csdn.net/qq_40688338/article/details/83380953
-
@NotNull 被注释的元素不能为null
-
PropertyDescriptor 描述 Java Bean 通过存储器方法导出的一个属性
-
readMethod.invoke(entity, null) 用来执行某个的对象的目标方法,传入的方法参数为null
-
条件构造器 queryWrapper、updateWrapper https://blog.csdn.net/m0_37034294/article/details/82917234
2020-8-11 学习
最新推荐文章于 2024-07-27 13:31:57 发布