Year: 2015

Last Updated on December 30, 2015 by jt This time last year the website Spring Framework Guru did not exist. It was just an idea I had. I was listening to Trevor Page being interviewed on a podcast with John Lee Dumas in November of 2014 when I had the idea for this site. Trevor, if […]Continue reading

Last Updated on May 27, 2019 by Simanta Spring Boot makes it extremely convenient for programmers to quickly develop Spring applications using an in-memory database, such as H2, HSQLDB, and Derby. These databases are lightweight, easy to use, and emulates other RDBMS with the help of JPA and Hibernate. Obviously, they don’t provide persistent storage; […]Continue reading

Last Updated on May 11, 2019 by jt In the 1.3.0 release of Spring Boot and new module is available called Spring Boot Developer Tools. This new Spring Boot module is aimed at improving developer productivity in building Spring Web Applications. When you’re developing a web application in Java, or really any programming language, a common […]Continue reading

Last Updated on June 15, 2019 by Simanta Core to the Spring Framework is a concept of bean factories. Spring bean factories follow the concepts of the GoF Factory Design Pattern to provide the requestor fully configured objects. Under the covers when the Spring Framework is performing dependency injection on your beans, Spring itself will […]Continue reading

Last Updated on June 16, 2019 by Simanta During the creation of Spring Beans, you can obtain the name of the bean by implementing the Spring interface – BeanNameAware. Then during the creation of Spring beans, the Spring Context will inject the name it has set for the bean. This is the name the Spring […]Continue reading

Last Updated on June 26, 2019 by Simanta When Autowiring Spring Beans, a common exception is a BeanCreationException. This means that Spring found a bean to create, but was unable to fulfill the dependencies needed to create this this Spring bean. Here is an example of a BeanCreationException: BeanCreationException Exception in thread “main” org.springframework.beans.factory.BeanCreationException: Error […]Continue reading

Last Updated on June 30, 2019 by Simanta When Autowiring Spring Beans, a common error is to see a NoSuchBeanDefinitionException. Here is an example of the NoSuchBeanDefinitionException you may see thrown by the Spring context: NoSuchBeanDefinitionException Exception in thread “main” org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [guru.springframework.controllers.HelloController] is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:372) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:332) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1060) By […]Continue reading

Last Updated on October 22, 2024 by jt Sorting an ArrayList is a common task in Java development. ArrayList is one of the most commonly used collection classes of the Java Collection Framework. Java provides a number of different ways to sort ArrayLists. In this post, we’ll explore the different ways to sort ArrayLists, and […]Continue reading