Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.springbootdev.examples.api.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/api")
public class WelcomeController
{
@GetMapping("/welcome")
public String sayHello(){
return "Welcome to www.SpringBootDev.com";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.