I created a basic spring boot web application
@SpringBootApplication
public class ScanApplication {
public static void main(String[] args) {
SpringApplication.run(ScanApplication.class, args);
}
}
@RequestMapping(value = "/rest")
@RestController
public class MemberController {
@GetMapping(value = "/users/{memberId}/scan")
public ResponseEntity<Void> getCardId(@PathVariable("memberId") Long memberId)
...
}
}
In the browser, if i call
http://localhost:8080/rest/users/1/scan
I get this message
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Sep 27 16:46:37 EDT 2016 There was an unexpected error (type=Not Found, status=404). No message available
Don't understand why i get this message.