First REST service

Let's start with creating a simple REST service returning a welcome message. We will create a simple POJO WelcomeBean class with a member field called message and one argument constructor, as shown in the following code snippet:

    package com.mastering.spring.springboot.bean;

public class WelcomeBean {
private String message;

public WelcomeBean(String message) {
super();
this.message = message;
}

public String getMessage() {
return message;
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset