https://blog.csdn.net/dwf_android/article/details/79359360
https://www.cnblogs.com/larryzeal/p/5874107.html
https://blog.csdn.net/qq_19260029/article/details/78010369
https://www.cnblogs.com/jinjiyese153/p/8579972.html
<!--通用Mapper start-->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>2.1.5</version>
</dependency>
<!--通用Mapper end-->
mapper:
mappers: com.hc.commonMapper.tkMyMapper
identity: MYSQL
not-empty: false
package com.hc.commonMapper; import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper; public interface tkMyMapper<T> extends Mapper<T>, MySqlMapper<T> {
}//end
package com.hc.tkMapper; import com.hc.commonMapper.tkMyMapper;
import com.hc.entity.liehu_app;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service; @Service
@Mapper
public interface hc_appMapper extends tkMyMapper<hc_app> { }//end