Spring Boot DataSource Configuration Java Example Now a days (Date: May 2017) almost all application which use Spring framework using Spring Boot and to connect data base using java as configuration class please use example below:
Read Properties File Key Value Spring Java Class These are the things people forget all the time at-least in my case for sure hopefully you are also in the same boat. So keep this thing handy somewhere so that we … Continue reading
Define List Bean Spring Java Example To define List as bean in Spring framework is very straight forward as below:
Create Multiple Object Spring Java Class If you have worked with Spring framework then you are familiar with spring bean scope: singleton: This is default scope of the bean if you don’t define scopes then bean will be singleton (One … Continue reading
Spring Boot Multiple Configuration File There are many ways you could set up multiple configuration file in Spring Boot application. In last tutorial you saw how to create application with default configuration file.
Spring Boot Tomcat Example Spring Boot made easy to create stand-alone application which you can “just run”. In last tutorial you saw how to create sample Spring Boot Hello World application. In this tutorial we advantage opinionated view of the … Continue reading
Read Properties Spring Application Context There are many ways you could read value from properties file while using Spring framework. If you want to read properties from file during Spring context load please use below simple technique. To make something … Continue reading
Store class HashMap Spring Example Spring provide many functionality which can be configured and access at run time through beans. Here I will show you how to store classes in HashMap and access it at runtime.
Create HashMap Spring XML Example While working with Spring framework where you define object model as bean in your Spring context file, you could also define HashMap as bean in your XML definition as below:
MethodInvokingJobDetailFactoryBean Pass Parameter If you are working with Spring with Quartz to schedule the job and wanted to pass parameter while using the MethodInvokingJobDetailFactoryBean Pass Parameter please use below: