報錯爲:class
(controller中)service
@Autowired
@Qualifier("BaseManageServiceImpl")
public BaseManageService service;di
這段話中沒法找到與BaseManageServiceImpl匹配的類,因此沒法建立controller。vi
緣由:co
@Qualifier("BaseManageServiceImpl")註解
這個註解的首字母必須爲小寫,否則沒法找匹配類。
controller
解決辦法:
@Autowired
@Qualifier("baseManageServiceImpl")
public BaseManageService service;
爲何必定要小寫這個緣由尚未找到,未來找到的時候補在這裏: