Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating bean #44

Open
cherifkasse opened this issue Aug 16, 2023 · 5 comments
Open

Error creating bean #44

cherifkasse opened this issue Aug 16, 2023 · 5 comments

Comments

@cherifkasse
Copy link

Hello !
Can u help me i have this error:
Error creating bean with name 'jwtAuthenticationFilter' defined in file [F:\javadev1\SunuBtrust360_Enrol\target\classes\com\SunuBtrust360_Enrol\config\JwtAuthenticationFilter.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'jwtService': Injection of autowired dependencies failed

@ak774411
Copy link

It relate to the jpa start up, you need to create a postgresql on your localhost and set the config in application.yml

@kavyabala23
Copy link

I too have the same error.I have created a database in my localhost but i also got that error

@iozyigit0
Copy link

iozyigit0 commented Nov 7, 2023

this could be configuration problem that Lombok is not accepting. Can you remove @RequiredArgsConstructure and use Autowirde for the dependencies, just to understand if problem is database or Lombok.

@Autowired
private final JwtService jwtService;

@Autowired
private final UserDetailsService userDetailsService;

@Autowired
private final TokenRepository tokenRepository;

@Danc-0
Copy link

Danc-0 commented Nov 14, 2023

I had also faced a similar challenge and for my case I had duplicated the relationships of my table and thus creation was quite of a challenge thus resulting to this.

Maybe check on your DB configuration and your entities.

@ihebwp
Copy link

ihebwp commented May 22, 2024

regarding the jwtfilter exception "error creating bean" :
i configure the properties/connection port to 5432 and Username to postgres same into application-de.yml
worked for me //

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants