如何抑制来自静态元模型的警告

时间:2019-02-18 13:37:52

标签: java spring-boot

我有许多带有@StaticMetaModel批注的类,其中仅包含我的规范所需的字段。 Spring Boot向我警告所有其他缺少的字段。

其中一个类别:

@StaticMetamodel(PotentialChkInspNonOff.class)   
public class PotentialChkInspNonOff_ {
    public static volatile SingularAttribute<PotentialChkInspNonOff, Integer> cidYr;
}

这是警告:

2019-02-18 12:23:07.738  WARN 9848 --- [           main] o.h.j.i.metamodel.MetadataContext        : HHH015011: Unable to locate static metamodel field : com.niab.seedcert.model.crops.PotentialChkInspLicOff_#kind; this may or may not indicate a problem with the static metamodel

这很烦人,因为有很多,是否有办法忽略此警告?

谢谢!

0 个答案:

没有答案
相关问题