springboot 通用Mapper使用

听闻少年二字,当与平庸相斥。这篇文章主要讲述springboot 通用Mapper使用相关的知识,希望能为你提供帮助。
https://blog.csdn.net/dwf_android/article/details/79359360
https://www.cnblogs.com/larryzeal/p/5874107.html
【springboot 通用Mapper使用】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

 

    推荐阅读