undefinedfix
Sign in

Spring getBean can be obtained, but @ resource cannot

mdjqp edited in Thu, 24 Nov 2022

Service layer injection Dao can be injected by using resource, but why can controller get bean only by getBean? Resource injection is always empty. Thank you

2 Replies
khellang
commented on Thu, 24 Nov 2022

Lu Xun: it's hooligans to ask code questions but not stick code

M_Salehi
commented on Thu, 24 Nov 2022

Talk is cheap. Show your the code.