Skip to content

Instantly share code, notes, and snippets.

@kinathru
Created March 16, 2017 17:58
Show Gist options
  • Save kinathru/e31743259fcd55b5bae6a031e0ff3c00 to your computer and use it in GitHub Desktop.
Save kinathru/e31743259fcd55b5bae6a031e0ff3c00 to your computer and use it in GitHub Desktop.
package com.kinath.interwar;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by Kinath on 3/15/2017.
*/
@CrossOrigin
@RestController
@RequestMapping("/groundservice") public class GroundService
{
private static GroundService instance;
public static GroundService getInstance()
{
if( instance == null )
{
instance = new GroundService();
}
return instance;
}
@RequestMapping(value = "/message", method = RequestMethod.GET)
public String getMessage()
{
return "Message from Ground Service";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment