Method annotated with @Bean is called directly. Use dependency injection instead.

The @Configuration annotation is not added, causing errors in calling each other between @beans

Add @Configuration to the class name.