org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 。。。。。。
當發現這類報錯時并且@mapper和@service都注冊的情況下,依然報錯:
1.将pom。xml檔案中各個版本調整到正常一樣(各個版本問題)
如何找到正确版本:https://mvnrepository.com/
(搜尋後使用一個适合的版本就行)
總結:當發現這類報錯時并且@mapper和@service都注冊的情況下,那麼可能就是pom問題了,主要是依賴的版本問題。