一般整合了 通用mapper之後,啓動的時候會有一個警告信息:
warn No MyBatis mapper was found in xxx
這個一般不會影響springboot的運行,但是有強迫症的人看着還是比較難受的。
解決方法很簡單,寫一個 mapper接口讓它找到就行了
package com.dadi.webbase.framework.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 主要用於清除 No MyBatis mapper was found in 警告信息
* @author 大D
*/
@Mapper
public interface NoWarnMapper {
}
重啓啓動springboot 世界清靜了。