在IDEA 中生成的mybatis xml配置文件其中的BaseColumns的字段 IDEA会识别为unable to resolve column 'xxxx' 虽然对实际使用没影响, 但是强迫症看着挺糟心的.
网上的解决方案有很多 基本上都是view————》Tool Windows————》Persistence 类似的方法. 但是试过之后都没啥用.
这里提供一个解决方案.
在resultMap内增加 注释 <!--@Table t_customer--> 即可解决见截图
在IDEA 中生成的mybatis xml配置文件其中的BaseColumns的字段 IDEA会识别为unable to resolve column 'xxxx' 虽然对实际使用没影响, 但是强迫症看着挺糟心的.
网上的解决方案有很多 基本上都是view————》Tool Windows————》Persistence 类似的方法. 但是试过之后都没啥用.
这里提供一个解决方案.
在resultMap内增加 注释 <!--@Table t_customer--> 即可解决见截图