How to post json object from ajax to java class without without servlet but with JAX-RS?
问题 I am new to JAX-RS , I am trying to learn new things about it. I am stuck with one issue regarding, creating a JSON object in Java Script , posting it through ajax to a Java class using JAX-RS and annotations and creating a JSON file out of it. I am creating a Maven project for it. Can anyone please suggest me any tutorial for this. I am trying to implement it from past 1 week but unable to do anything. Any suggestions appreciated. My POST annotation in Java is: @POST @Path("/post") @Consumes