卫星电视锅,蔡玥,卫星机顶盒
@vaild
example
配的@runwith(springrunner.class) @springboottest @activeprofiles("dev") @slf4j public class fundapplicationtests { @test public void contextloads() { log.info("adafdafds"); } }
@target({elementtype.method, elementtype.annotation_type}) @retention(retentionpolicy.runtime) @documented @repeatable(schedules.class) public @interface scheduled {
@repeatable
注解就是表明了这个注解可以重复注transient
修饰,在配合jackson或fastjson的fj.setserializerfeatures(serializerfeature.skiptransientfield)
配置,表示对controller层做切面,返回数据的json序列化会去掉该字段;而@tablefield(select = false)
注解的属性字段,表示用mybatis的sql查询,默认查全量字段时,该字段不查询transient
会导致逻辑删除模式失效deletebyid
这样的操作变成逻辑删除,还可以使除了自定义语句的查询默认加上逻辑删除=未删除的条件,也就是说,像下列这样的查询操作,默认会加上del_flag=0
,我们无需再多写这个字段的条件user user = this.basemapper.selectone(wrappers.<user>lambdaquery(). select(user::getusername, user::getsex, user::getnickname).eq(user::getuserid, userid));
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
apollo与springboot集成实现动态刷新配置的教程详解
网友评论