The most stupid lost of 6 hours of my life!!!
@RestController
@RequestMapping("/")
public class RootController {
@GetMapping("/{id_user}")
public ResponseEntity\<Void\> global_network_config() {
return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}
}
Spring thought that "/console" means "/" with parh variable "console"!!!!!
The problem was solved by adding "ms"
@GetMapping("/ms/{id_user}")
public ResponseEntity\<Void\> global_network_config() {
return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build();
}
And to avoid problem with code 200 make normal socket config:
registry.addHandler(websocketMinecraftConsole, "/console")
.setAllowedOrigins("\*");