spring的servceiImpl無法注入dao

事情是這樣的,在寫serviceImpl的時候。當我把@Autowired加載接口上時,它提示我dao爲空,意思就是沒有注入成功咯。我思前想後。於是....... 大兄弟,記得在serviceImpl類前加一個@Service。
相關文章
相關標籤/搜索