使用Spring + Mybatis 时,遇到mapper扫描不到: 解决方法:(推荐两种) 1.在main主类中,注解@MapperScan(“com.example.computershop.mapper”) 2.在各个mapper中注解,@Mapper