io.github.wujun728.db.properties.MybatisPlusAutoFillProperties Maven / Gradle / Ivy
package io.github.wujun728.db.properties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
/**
* mybatis-plus 配置
*
*/
@Setter
@Getter
@ConfigurationProperties(prefix = "jun.mybatis-plus.auto-fill")
//@RefreshScope
public class MybatisPlusAutoFillProperties {
/**
* 是否开启自动填充字段
*/
private Boolean enabled = true;
/**
* 是否开启了插入填充
*/
private Boolean enableInsertFill = true;
/**
* 是否开启了更新填充
*/
private Boolean enableUpdateFill = true;
/**
* 创建时间字段名
*/
private String createTimeField = "createTime";
/**
* 更新时间字段名
*/
private String updateTimeField = "updateTime";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy