Book Image

Learning Spring 5.0

By : Tejaswini Mandar Jog
Book Image

Learning Spring 5.0

By: Tejaswini Mandar Jog

Overview of this book

<p>Spring is the most widely used framework for Java programming and with its latest update to 5.0, the framework is undergoing massive changes. Built to work with both Java 8 and Java 9, Spring 5.0 promises to simplify the way developers write code, while still being able to create robust, enterprise applications.</p> <p>If you want to learn how to get around the Spring framework and use it to build your own amazing applications, then this book is for you.</p> <p>Beginning with an introduction to Spring and setting up the environment, the book will teach you in detail about the Bean life cycle and help you discover the power of wiring for dependency injection. Gradually, you will learn the core elements of Aspect-Oriented Programming and how to work with Spring MVC and then understand how to link to the database and persist data configuring ORM, using Hibernate.</p> <p>You will then learn how to secure and test your applications using the Spring-test and Spring-Security modules. At the end, you will enhance your development skills by getting to grips with the integration of RESTful APIs, building microservices, and doing reactive programming using Spring, as well as messaging with WebSocket and STOMP.</p>
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
9
Explore the Power of RESTful Web Services

Phase 3 - System testing


All the layers are working as per expectations; now, it's time to test the application by using the web, that is, we will check the functionalities one by one by taking the utmost care to go step by step. Not only the result, but the presentation, will also be observed, which will be close to the actual deployment environment. Let's deploy the application to check whether all the functions are working and giving the correct results both on the database side as well as the presentation side by either of the ways discussed next.

Using Eclipse IDE for deployment

In Eclipse, once you are finished with development, configure the server, and select the project from the Project Explorer to choose the Run on Server option, as shown by the arrows in the following screenshot:

The IDE will package the application in the WAR file, and deploy it to the container. Now you can check the functionalities one by one to make sure each and everything is as per expectations. We will take...