I get error when I run the main class.
Error:
Action:
Consider defining a bean of type \'seconds47.service.TopicService\' in your c
I solved this issue by creating a bean for my service in SpringConfig.java file. Please check the below code,
@Configuration
public class SpringConfig {
@Bean
public TransactionService transactionService() {
return new TransactionServiceImpl();
}
}
The path of this file is shown in the below image, Spring boot application folder structure