It sometime happen when your spring app not able to find the spring component and it's not get initialised in sprint container you can add component using @ComponentScan along with your @SpringBootApplication like below example
@SpringBootApplication
@ComponentScan({"model", "service"})
class MovreviewApplication {
public static void main(String[] args) {
SpringApplication.run(MovreviewApplication.class, args);
}
in above example model and service are the packages in my app.