|
@@ -27,16 +27,19 @@ public class ExamCloudController {
|
|
|
|
|
|
protected static final ExamCloudLog LOG = ExamCloudLogFactory.getLog(ExamCloudController.class);
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.GET)
|
|
|
public String get() {
|
|
|
return DateUtil.chinaNow();
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.HEAD)
|
|
|
public ResponseEntity<?> head() {
|
|
|
return new ResponseEntity<Object>(HttpStatus.NO_CONTENT);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.OPTIONS)
|
|
|
public HttpEntity<?> options() {
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
@@ -44,16 +47,19 @@ public class ExamCloudController {
|
|
|
return new ResponseEntity<Object>(headers, HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.POST)
|
|
|
public String post() {
|
|
|
return DateUtil.chinaNow();
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.PUT)
|
|
|
public String put() {
|
|
|
return DateUtil.chinaNow();
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@RequestMapping(value = {"/", ""}, method = RequestMethod.DELETE)
|
|
|
public String delete() {
|
|
|
return DateUtil.chinaNow();
|