I have a problem to run my Spring Boot with the usage of Jpastreamer. I cannot solve the bean issue related with Jpastreamer.
Here is the PersonService shown below
@Service
@RequiredArgsConstructor
public class PersonService {
private final JPAStreamer jpaStreamer;
private final PersonRepository personRepository;
...
}
I got this issue shown below when I run the application.
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.springboot.jpastreamer.service.PersonService required a bean of type 'com.speedment.jpastreamer.application.JPAStreamer' that could not be found.
Action:
Consider defining a bean of type 'com.speedment.jpastreamer.application.JPAStreamer' in your configuration.
Process finished with exit code 0
Here is the repo shown below
After defining
JPAStreameras abeaninJPAStreamerConfigshown below, the issue disappeared.