看一下启动类中:
如果有这段代码,他说的是扫描所有的组件,包括controller。
@ComponentScan(basePackages = {"com.kai.community.dao"})
使用一下代码替代。
@MapperScan(basePackages = {"com.kai.community.dao"})
看一下启动类中:
如果有这段代码,他说的是扫描所有的组件,包括controller。
@ComponentScan(basePackages = {"com.kai.community.dao"})
使用一下代码替代。
@MapperScan(basePackages = {"com.kai.community.dao"})