mybatis-config文件中添加mapper,映射到mapper.xml
<configuration> <mappers> <mapper resource="tk/mybatis/simple/mapper/IndicatorMapper.xml"/> </mappers> </configuration>