Submitted by heartin on Sat, 09/10/2016 - 22:34
Spring Boot can be considered as a new way to create Spring applications with ease. With Spring Boot, you can create standalone applications with an embedded server and you can "just run" them. For instance a web application can be run from your desktop similar to a desktop application.
Spring boot home page @ https://projects.spring.io/spring-boot/ describe itself as follows:
Submitted by heartin on Fri, 09/09/2016 - 06:04
Here I will list out upcoming notes or notes sections (books) on Spring.
Aspect Oriented Programming
Testing with Spring
Transactions with Spring
Spring and Data
Spring Boot Essentials (In progress)
Spring MVC Essentials (In progress)
Submitted by heartin on Fri, 09/09/2016 - 05:56
There are different ways to executing some code during initialization and destruction of a bean. We could do that using InitializingBean interface, but there are better approaches using annotations.
We will see two of such approaches here:
Using initMethod and destroyMethod attributes of the @Bean annotation
Submitted by heartin on Fri, 09/09/2016 - 04:37
Beans in Spring can be either singletons or prototypes. Singleton means that only one instance of the bean will be maintained by the Spring and will be returned every time you call the getBean() method. If you set the scope to prototype, then a new bean will be created every time you call the getBean() method.
The default is singleton. In Java configuration, you can specify that a bean scope is prototype by specifying @Scope("prototype") over the bean definition.
Submitted by heartin on Fri, 09/09/2016 - 01:13
Submitted by heartin on Tue, 09/06/2016 - 20:15
You can configure a Spring application entirely using xml configuration or using a Java configuration. XML configuration was the original configuration approach in Spring. Spring 2.0, which came in 2006, simplified the XML configurations.Spring 2.5, which came in 2007, introduced annotation configurations. Spring 3.2, which came in 2012, introduced Java configuration. You can use annotations to do most of the things along with xml or java configuration. However, you will mostly not see both xml configuration or Java configuration used together.
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)