Skip to content

Instantly share code, notes, and snippets.

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;
@RequestMapping(value = "/api")
public class WelcomeController
public String sayHello(){
return "Welcome to";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment