在bootstrap.properties中要配置xml扫描路径,不然Mapper接口找不到相应方法,报Invalid bound statement (not found)异常。
mybatis.mapperLocations=classpath:mybatis/*.xml
在bootstrap.properties中要配置xml扫描路径,不然Mapper接口找不到相应方法,报Invalid bound statement (not found)异常。
mybatis.mapperLocations=classpath:mybatis/*.xml