Posts

@ConfigurationProperties : Spring Boot's way of handling properties

Hello coders, We are always in quest of improving something or the other in our lifetime, this urge also fits in for technologies as well. We can see many enhancements and updates on each and every technology so as in our favourite Spring Framework. Spring has come a long way ahead since its inceptions.. Yes, the latest buzz word is "SPRING BOOT"!! Though it has made a lot of things easier for a developer, but sometime it debatable. In a nutshell, understanding it deeply is a must. Here, I will be sharing a tiny, may be a tiniest of a configuration annotations @ConfigurationProperties  We must have used properties files in almost all of our applications. Spring Boot provides a clean and neat way of using it in applications. Instead of writing the long properties name which is very error-prone (we must have spent lot of time debugging and at last it just a spelling mistake of property name). So, how about creating a class that gets mapped to properties on a file? I...

Let us start the SPRING...

Image
Hello Again.. It's coding time now...and let us do some JAVA coding first then we will "Springify" that code using Spring Framework. It is a simple Java program with classes, interface, main class to bring together all classes to work as one application. What will we do.... I know you guys will be sad because I promise to have some spring codes, but trust me staring with Springs right away will not that interesting... Some Prerequisite... IDE : I will be using STS . (SpringSource Tool Suite). Knowledge of Java That's it for now.. Begin.... Let us create a simple Contact Manager Application. Create a Java Project (File -> New -> Java Project) Create a Package " com.springwelcome.model " and inside that create a class " Contact.java ". Here we are going to define what we need to store in as contacts. It is a simple POJO class with FirstName , LastName and PhoneNumber . Let us now create another package that wil...

... Why SPRING ??

Hello Guys, As already mentioned, Spring is very lightweight and to make it more light it runs on a web container like Tomcat, and to make it lighter for developers it simply based on POJO (plain old Java objects). Even one can create a simple application with simple POJO and some spring configurations. Springs came to picture as an alternative to the existing Java EJBs due to the fact that EJB applications has huge problem while maintaining, lack for testing functionalists takes away the first and strong line of defense from developers, adding and removing modules into the old application was very very difficult as they are tightly coupled with each others. With these the added pressure of dealing with the complexities in code do not let developers to concentrate on the core business logic. Springs provide greats solutions to all these problem... Testability Maintainability Scalebility Handling complexities with ease All together, these makes our life easier and force ...

How SPRING ? Why SPRING ?

Hello Folks, Welcome back!! Welcome aboard !! Just to shake your brains, lets have a recap of the what I am doing here... My plan is to "KnowMore" about Springs Framework and share my understanding and gain knowledge from experts and gurus on my way. Its as simple as that. But before I start understanding the core, thought to know HOW springs came into existence and WHY it is still so lovable for developers across the world ?? Any guesses..? No..!! Yes..!! Its a framework..!! Easy to write code..!! Easy to build application..!! Yes, Exactly. Before I start sharing the WHY it still the "Love Of Developers", allow me to explain in brief HOW it came up ? Before 2002, we have JAVA EJB,  EE Applications which were in market for quite a long time. But with evolution of developers, so evolve spring as a product which is very LIGHTWEIGHT and runs on a web container e.g TOMCAT not in application server, Simple java POJO based development(I hope that all Java geek...

Before the start...

Hi folks, This is going to be a unique experience for me , for you , for all who are going to follow this series of blogs on springs. I can tell you, this is going to be a completely different form all existing blogs sites in web. Surprise ?? If I say at this point of time I DO NOT KNOW ANYTHING ON SPRINGS FRAMEWORK.... now what...more SURPRISE.. :O  !! Yes that's true, at this point I have no idea on spring framework apart from the fact that it is a Java Framework and is being widely accepted by world of developers. Now some thing about me, don't want to remain an alien for so long...before you kick me off your browser. I am a software developer by profession and have been in this industry from last 3 years. I have been working with a great tool "SERVOY". Servoy is a RAD tool which has very cool features that makes our life  so easy and fast that you can build a complete working application for rich/smart/desktop client, web client, mobile client and conne...