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
commented on Thu, 24 Nov 2022

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

commented on Thu, 24 Nov 2022

Talk is cheap. Show your the code.