Spring sandwich is breaking my @RestController
javapenguin opened this issue · comments
My @RestController
worked fine until i added @ComponentScan
to my main class.
@ComponentScan(basePackages = {"com.kastkode.springsandwich.filter", "za.co.quinn.spring.*"})
@SpringBootApplication
public class SpringSandwichApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(SpringSandwichApplication.class, args);
}
}
There is nothing in the log, just the error from the browser:
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri May 26 15:58:56 SAST 2017 There was an unexpected error (type=Not Found, status=404). No message available
Same here, my springboot application failed to start as its unable to load my spring bean components.
Any reason why ?