Sat May 07 20: 18:. There was an unexpected error ( type= Not Found, status= 404). No message available. args) throws Exception { SpringApplication. run( Application. class, args) ; } }. @ SpringBootApplication includes which scans the package it' s in and all children packages. Your controller may not be in any. I' m not sure if I accidentally removed it or if it was never there. I created a new project inside.
up vote 0 down vote. I received such error when ' SpringApplication' class and controller classes are in different packages. For example - if the GreetingController class isn' t in the same package or in a subpackage of the Application class, it will not be scanned, and so you will have this error. share| improve this answer. answered Aug 9 ' 15 at 15: 56. Sun Jan 01 20: 47: There was an unexpected error ( type= Not Found, status= 404). こんな感じのメッセージが出るだけです。 なぜなら、 Controllerがないからです。 HTTP GETを受け取るようにしま. Spring Boot で作成した REST API でエラーが発生したときに返る、 デフォルトの エラーメッセージを制御したい。. パス間違い { " timestamp" :, " status" : 404, " error" : " Not Found", " message" : " No message available". Whitelabel Error Page This application has no explicit mapping for / error, so you are seeing this as a fallback. Fri Dec 02 15: 36: There was an unexpected error ( type= Not Found, status= 404). public void configureDefaultServletHandling( DefaultServletHandlerConfigurer configurer) { configurer. Source: Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error.