mybatis
the specific configuration in application.yml
is as follows:
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/mysql/**/**.xml
type-aliases-package: com.dragonflyxd.lr.web.model.entity
there is also a note to scan mapper files in the entry LrWebApplication
of the project:
@MapperScan("com.dragonflyxd.lr.web.dal.**")
The screenshot of the code structure of the Dao layer is as follows:
mybatis-config:
CategoryMapperMapperxml:
/category/test
"Invalid bound statement (not found): com.dragonflyxd.lr.web.dal.CategoryMapper.count"
- Mapperxml
- xmlMapper
- Mapperxml