there is more than onebean ofxxx

编译器报错:注入了多个同类型bean的问题

@Service
public class BookServiceImpl implements IBookService {
	@Autowired
	private BookMapper bookMapper;
	/*private BookMapper bm;*/

将属性名写成bm 则报错,改为bookMapper则不报错, 目前原因未知

猜你喜欢

转载自blog.csdn.net/weixin_42410730/article/details/84579062