When making a request via HTTP it is possible to specify what type of response you would like by setting the Accept header property. Web ...
Home
Archive for
January 2016
Spring REST Client with RestTemplate Consume RESTful Web Service Example for XML and JSON
In this tutorial we will learn how to use spring RestTemplate to consume RESTful Web Service. RestTemplate communicates HTTP server using...
Spring REST Hello World XML tutorial with Example
In this tutorial, we will learn to write APIs capable of returning XML representations of resources. Step 1 :- Open Eclipse and Create D...
Spring REST Hello World JSON Tutorial with Example
In this tutorial, we will learn to write APIs capable of returning JSON representations of resources. Step 1 :- Open Eclipse and Create ...
Spring MVC Form Validation using Annotation Tutorial with Example
When we accept user inputs in any web application, it become necessary to validate them. We can validate the user input at client side usi...
Printing Even and Odd using two Threads in Java
Write a java program to print even and odd values in sequence. Expected result: Odd:1 Even:2 Odd:3 Even:4 Odd:5 Even:6 Odd:7 Even:...
3 threads to print alternate values in sequence in java
Write a java program to print 3 threads alternate values in sequence. Expected result: Thread[Thread1,5,main] 1 Thread[Thread2,5,mai...
Print all combinations of balanced parentheses
Write java program to generate all possible n pairs of balanced parentheses. For example, if n=1 {} for n=2 {}{} {{}} Solution :- ...
Spring MVC Hello World Tutorial with Example
STEP 1:- Open Eclipse and Create Dynamic Web Project named SpringMVCExample STEP 2:- Make sure you use Target Runtime as Apache Tomcat...
Subscribe to:
Posts
(
Atom
)