http://localhost:9105/publishTheme/ST0821122|461
后端直接改成这种也没用,除非前端也得做加码才可以
@GetMapping("/{id}")
public Object getPublishTheme(@PathVariable String id) {
Map<String,Object> params= new HashMap<String,Object>();
String decodeId="";
try {
decodeId=URLDecoder.decode(id,"UTF-8");
} catch (UnsupportedEncodingException e) {
logger.error(e.getMessage(), e);
}
params.put("ID",decodeId);
return publishThemeService.getPublishTheme(params);
}