uta.ak.usttmp.common.web.controller.UsttmpRestController.java Source code

Java tutorial

Introduction

Here is the source code for uta.ak.usttmp.common.web.controller.UsttmpRestController.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package uta.ak.usttmp.common.web.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author zhangcong
 */
@RestController
@RequestMapping("rest")
public abstract class UsttmpRestController {

    @RequestMapping(value = "/interfaceResponser", method = RequestMethod.POST, produces = MediaType.TEXT_PLAIN_VALUE)
    public abstract ResponseEntity<String> getMessage(@RequestBody String message) throws Exception;

}