Skip to content

Instantly share code, notes, and snippets.

@pedrovitorlima
Created September 5, 2019 20:19
Show Gist options
  • Save pedrovitorlima/c57fbed76a97eb5807869b875dd2c6e9 to your computer and use it in GitHub Desktop.
Save pedrovitorlima/c57fbed76a97eb5807869b875dd2c6e9 to your computer and use it in GitHub Desktop.
package com.ci.cd.example.cicourse.com.ci.cd.example.cicourse.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("ci-course")
public class CiCourseController {
@GetMapping("hello")
public String sayHello() {
return getHelloString();
}
protected String getHelloString() {
return "Hello";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment