79611959

Date: 2025-05-08 08:08:51
Score: 0.5
Natty:
Report link

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("\*");
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tankoman 228