Spring boot

Hi, I am a beginner at Spring Boot and I tried to configure my API espcially for user connexion.
I have a database which is connected and it works.
But I try to create a SecurityConfig and I have this error : java: variable userService not initialized in the default constructor
In the code (after this message), I use @RequiredArgsConstructor so it should work...

I have a problem with the model User for the database because it says it doesnt find getters but I use @Data with Loombook and it works on another model.
Can someone please try to explain me ?
Was this page helpful?