Skip to content

Instantly share code, notes, and snippets.

/ProtectedSvc.java Secret
Created Aug 31, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.