When I add @ComponentScan("com.firstday.spring.boot.services")
or scanBasePackages{"com.firstday.spring.boot.services"}
jsp is not loaded. So when I add the parent package of project in @SpringBootApplication class it's working fine in my case
Code Example:-
package com.firstday.spring.boot.firstday;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = {"com.firstday.spring.boot"})
public class FirstDayApplication {
public static void main(String[] args) {
SpringApplication.run(FirstDayApplication.class, args);
}
}