1. 程式人生 > >there is more than onebean ofxxx

there is more than onebean ofxxx

編譯器報錯:注入了多個同類型bean的問題

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

將屬性名寫成bm 則報錯,改為bookMapper則不報錯, 目前原因未知