mybatis:
#程序里写了,这里不起作用
mapper-locations: classpath:com/toyor/huoyuncloud/provider/mapper/**/.xml
type-aliases-package: com.toyor.huoyuncloud.model
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #org.apache.ibatis.logging.log4j2.Log4j2Impl
#logging.level.com.toyor.huoyuncloud.provider.mapper: debug #也可以输出日志
注意如果配置了,提示找不到mapper, 那就是 Mapper没有加注解@Mapper
@Mapper
public interface RedBagDetailMapper