I have a problem with initialising org.springframework.security.oauth2. VS code says about troubles resolving it. I think I may have a problem with dependencies and pom.xml, but i don't know how to fix them. It the code below VS doesn't recognize the .oauth2 part at all.
import org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest;
import org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService;
import org.springframework.security.oauth2.client.userinfo.OAuth2UserService;
import org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser;
import org.springframework.security.oauth2.core.oidc.user.OidcUser;
I tried to find solutions online, but I couldn't understand them or how to implement it in my own situation.