Posts

Showing posts from August, 2017

Hello world project in Spring

This is My first post on Spring. Happy Learning !! 1.Download Eclipse from https://www.eclipse.org/downloads/ 2. Once you install the Eclipse navigate to Help->Eclipse Marketplace and download Spring tools Spring uses IOC (Inversion of Control) container to create, initialize, manages objects and you don't need to create the java objects from the class which avoids tight coupling. In this blog, you will learn about the different ways of creating the java objects through spring core container IOC. Create a java project Create a bean class Hello.java- Spring uses setter methods to initialize the objects package com.practice; public class Hello { public Hello() { System.out.println("Hello constructor"); } public String message; public void getMessage() { System.out.println("Your Message"+ message); } public void setMessage(String message) { this.message = message; } } Create a spring bean configuration...