forked from fanruan/demo-cluster-ticket
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
874 B
30 lines
874 B
package com.fr.plugin.rpc; |
|
|
|
import com.fr.decision.webservice.Response; |
|
import com.fr.third.springframework.stereotype.Controller; |
|
import com.fr.third.springframework.web.bind.annotation.RequestMapping; |
|
import com.fr.third.springframework.web.bind.annotation.RequestMethod; |
|
import com.fr.third.springframework.web.bind.annotation.ResponseBody; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
/** |
|
* @author Zed |
|
* @version 10.0 |
|
* Created by Zed on 2020/8/21 |
|
* |
|
* 测试用的rest api |
|
*/ |
|
@Controller |
|
public class RPCController { |
|
|
|
@RequestMapping(value = "/print", method = RequestMethod.GET) |
|
@ResponseBody |
|
public Response batch(HttpServletRequest req, |
|
HttpServletResponse res) throws Exception { |
|
|
|
PrintImpl.INSTANCE.getProxy().print(); |
|
return Response.success(); |
|
} |
|
}
|
|
|