Spring

Spring MVC Basics

Posted on

This post will help if you are looking for the following : An introduction to Spring MVC Understanding Spring MVC concepts Understand flow of execution in Spring MVC Understand basics of Spring MVC   MVC Pattern In Model View Controller pattern: Model represents application’s data and business logic. View is the visual representation of data […]

Java

Spring MVC Hello World

Posted on

In this Hello World MVC application, we will display Hello World message on the browser, when the user accesses the url.   Here are the tools we are using for this project: Eclipse Kepler Java EE IDE Tomcat 7 Maven JDK 1.7   Here is a brief of the steps required for the project : […]

Java

Spring Hello World with Constructor Injection using XML

Posted on

In this post, we will write a Hello World program in Spring using Maven. We will use an xml based configuration file for managing dependencies. We will be using constructor injection for injecting dependencies. The constructor injection will be for String literal.   First of all if you don’t have Maven, download maven and make sure […]

Java

Dependency Injection in Spring

Posted on

Dependency injection involves providing an object its dependencies rather than the object having to acquire those dependencies on its own. The dependencies are injected into the objects that need them. The key benefit of dependency injection is Loose coupling.   Spring provides dependency injection by creating associating between components using a concept called “wiring”. In Spring, […]

Java

Spring Hello World

Posted on

In this post, we will create Hello World program in Spring using Maven. We will use an xml based configuration file for managing dependencies.   First of all if you don’t have Maven, download maven and make sure to setup JAVA_HOME and PATH variables. Please refer below article for this. Maven Basics   Now, run […]

Interview questions

Spring Interview questions

Posted on

What is Dependency Injection in Spring ? Dependency injection helps you to avoid unnecessary creation and lookup code in your application. If a class X, requires Class Y’s functionalities, we don’t have to write code to create class Y’s instance . Spring framework uses Dependency Injection and injects object of Y into object of X […]