记得把接口设置可以跨域
/*** * 微信注册 * @param data * @return */ @CrossOrigin(origins = {"*", "null"}) //插入这一句就ok 不用按照runAPI showDoc文档说的那么设置 @RequestMapping(value = "authWX",method = RequestMethod.POST ,produces = {"application/json;charset=UTF-8"}) @ResponseBody public String authWX(@RequestBody String data) {
写文档的时候 点击生成markdown 然后复制内容即可!