Creating resources

To create basic Spring project resources, you can use Spring Initializr (https://start.spring.io/) . In Spring Initializr, provide the necessary details:

Generate a Maven Project with Java and Spring Boot 1.5.9.

Group: com.packtpub.restapp

Artifact: ticket-management

Search for dependencies:  Select Web (Full Stack Web Development with Tomcat and Web MVC)  dependency 

After filling in the details, just click Generate Project; then it will create Spring basic resources in ZIP format. We can start using the project by importing them into Eclipse. 

 

The Spring 5 POM file will look like this:

<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

Get Building RESTful Web Services with Spring 5 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.