Submitted by heartin on Tue, 09/06/2016 - 20:15
Traditionally Spring applications were configured using only xml configurations. Later annotations such as @Component came and complemented the xml configuration. However later XML configurations were completely replaced by Java configurations that use annotations such as @Bean.
In xml configuration, you use xml to configure beans.
We can load an xml configuration file from a standalone application as: [node:read-more:link]
Submitted by heartin on Tue, 07/05/2016 - 21:03
Below JAX-RS annotations aid in mapping a resource class (a POJO) as a web resource:
Submitted by heartin on Tue, 07/05/2016 - 20:28
REST follows resource oriented architecture as opposed to the popular service oriented architecture followed by SOAP web services.
Resource-Oriented Architecture has four important concepts:
Submitted by heartin on Sun, 07/03/2016 - 21:57
Java is one of the most popular programming languages. However, recently many other programming languages have come and some of them even running on top of the Java Virtual Machine (JVM). Many of these languages support newer programming practices like functional programming and comes with a bunch of out of the box functionalities that abstract away most of the low level details from the programmer.
Submitted by heartin on Tue, 06/14/2016 - 22:59
Java 8 has has made some improvements in collections framework such as a new forEach loop, better type inference etc. We will list out those features here.
The forEach method
The default forEach method of the Iterable interface performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
Signature of the methiod is: void forEach(Consumer<? super T> action) [node:read-more:link]