去除编译报警
This commit is contained in:
@@ -56,7 +56,7 @@ public class GbStreamController {
|
||||
*/
|
||||
@ApiOperation("移除国标关联")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "gbStreamParam", value = "GbStreamParam", required = true ,
|
||||
@ApiImplicitParam(name = "gbStreamParam", value = "GbStreamParam", required = true,
|
||||
dataTypeClass = GbStreamParam.class),
|
||||
})
|
||||
@DeleteMapping(value = "/del")
|
||||
@@ -77,7 +77,7 @@ public class GbStreamController {
|
||||
*/
|
||||
@ApiOperation("保存国标关联")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "gbStreamParam", value = "GbStreamParam", required = true , dataTypeClass = GbStreamParam.class),
|
||||
@ApiImplicitParam(name = "gbStreamParam", value = "GbStreamParam", required = true, dataTypeClass = GbStreamParam.class),
|
||||
})
|
||||
@PostMapping(value = "/add")
|
||||
@ResponseBody
|
||||
|
||||
@@ -14,6 +14,8 @@ import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
|
||||
@RestController
|
||||
@@ -31,7 +33,7 @@ public class RecoderProxyController {
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/**/**/**", produces = "application/json;charset=UTF-8")
|
||||
public Object proxy(HttpServletRequest request, HttpServletResponse response){
|
||||
public Object proxy(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException{
|
||||
|
||||
|
||||
String baseRequestURI = request.getRequestURI();
|
||||
@@ -51,7 +53,7 @@ public class RecoderProxyController {
|
||||
mediaInfo.getSdpIp(),
|
||||
mediaConfig.getRecordAssistPort(),
|
||||
baseRequestURI.substring(baseRequestURI.indexOf(mediaId) + mediaId.length()),
|
||||
URLDecoder.decode(request.getQueryString())
|
||||
URLDecoder.decode(request.getQueryString(), "UTF-8")
|
||||
);
|
||||
// 发送请求
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
|
||||
Reference in New Issue
Block a user