java: Cannot access org.springframework.security.core.userdetails.UserDetailsService

Some time ago, when I was working on a SSM enterprise authority management system, I encountered a bug
Insert picture description here
project that failed to compile
. Why? I searched the Internet for a long time and didn't find the answer. Forget it, try to find out for yourself:
the literal meaning of the error report is lack of related dependencies , But the problem is coming. The service module has SpringSecurity dependency, and the web module also imports related dependencies. This problem shouldn't exist! ! !
Forget it, it may be a bug in IDEA, introduce it manually, and then it's ok, it's that simple.

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42118981/article/details/112201818