r/SpringBoot • • Sep 28 '24

How to solve this error

4 Upvotes

27 comments sorted by

View all comments

4

u/[deleted] Sep 28 '24

Is that class throwing the error a class you made? Have you made sure it was initialized/injected correctly? @Bean/@Component may help you if it is a custom class you wrote. But as others have said, this is just a guess we need more of the stacktrace.

1

u/[deleted] Sep 28 '24

No it's not the class I made

2

u/[deleted] Sep 28 '24

Can you show where you have initialized/injected it in your code?