Skip to content

Commit

Permalink
测试新增的 mybatis.base-packages 参数
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Dec 16, 2018
1 parent 5230c5e commit 5c8a4ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@

package tk.mybatis.sample.mapper;

import tk.mybatis.mapper.annotation.RegisterMapper;
import tk.mybatis.mapper.common.Mapper;

/**
* @author liuzh
* @since 2017/1/2.
*/
@RegisterMapper
public interface BaseMapper<T> extends Mapper<T> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@

package tk.mybatis.sample.mapper;

import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.sample.domain.Country;

import java.util.List;

/**
* @author Eduardo Macarron
*/
@Mapper
public interface CountryMapper extends BaseMapper<Country> {

List<Country> findAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spring:
schema: import.sql
mybatis:
config-location: mybatis-config.xml
base-packages: tk.mybatis.sample.mapper

logging:
level:
Expand Down

0 comments on commit 5c8a4ed

Please sign in to comment.