This tutorial will show you a step by step procedure to deploy your java web application on Amazon EC2 Server. You must have a access to a valid Amazon AWS Server.
- First go to this URL https://aws.amazon.com/
- Go to My Account/Console on top right and select My Account and login with your email and password. Continue reading How To Deploy Java Web Application/WAR File On Amazon Beanstalk?
Spring framework contributes in loose coupling with the help of Dependency Injection(DI) or Inversion of Control(IOC). DI allows you to inject objects into a class, rather than relying on the class to create the object itself. So the process of creating an object is inverted.
In a software system, objects collaborate with each other to make the system work. These collaborations are generally in the form of one object depending on another object, in other words, declaring an object with “new” operator in the other class.
The discussed example in this article can be downloaded as eclipse project from here
Continue reading What Is Dependency Injection/ Inversion of Control And How Does It Helps In Loose Coupling?
Spring makes it remarkably easy to write controllers which return XML or JSON response. Simply add the annotation @ResponseBody to your controller definition and you are done. Whatever you will return from your controller method will be automatically converted to XML or JSON (depending upon “Accept” header of the request). The return type of the controller can be any Object: ranging from maps and beans to collections and arrays.
Continue reading Spring+Hibernate: How to convert entities to XML/JSON?