接口:public String get(HttpServletResponse response) throws Exception { response.addHeader("Access-Control-Allow-Origin","*"); return "hello";}
如果是静态文件html,则加上<meta http-equiv="Access-Control-Allow-Origin" content="*" />