2016-04-12 23:20:05 -05:00
|
|
|
package com.example;
|
|
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/rest/api")
|
|
|
|
|
public class MyRestController {
|
2016-04-15 05:53:48 -05:00
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
|
|
public String index() {
|
|
|
|
|
return "Hello";
|
|
|
|
|
}
|
2016-04-12 23:20:05 -05:00
|
|
|
|
|
|
|
|
}
|