Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2014 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/8d009f61cb6dea140a27 to your computer and use it in GitHub Desktop.
Save anonymous/8d009f61cb6dea140a27 to your computer and use it in GitHub Desktop.
package com.blabadi.controllers.rest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/rest/protectedSvc")
public class ProtectedSvc {
@RequestMapping("/hello")
@ResponseBody
public String ping() {
return "pingo";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment