我的src/main/java裡面有com.zdyl.qgy.dao包,為什麼applicationContext-daos.xml裡面bean的class訪問不到dao?maven項目。
Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.zdyl.qgy.dao] for bean with name 'adminDao' defined in class path resource [applicationContext-daos.xml]; nested exception is java.lang.ClassNotFoundException: com.zdyl.qgy.dao
你這個寫的是包名吧,需要寫的是類名,大概是com.zdyl.qgy.dao.AdminDao?