Search code examples
javaswaggertomcat8restful-architecturespring-restcontroller

Using tomcat Can I check if my HTTP REQUEST is a valid Request to my web services?


Basically the TOMCAT response will be a "Bad Request 400" if I have any mistake in my REQUEST PARAMS, are there any solution to detect that mistake without writting a test code for the received REQUEST ?


Solution

  • JAVA validator is the solution : https://www.leveluplunch.com/java/tutorials/017-validate-spring-rest-webservice-request/