Commit 23f90d50 by cc150520900118

增加服务端cros跨域

parent ee19c45c
......@@ -13,10 +13,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
......@@ -33,6 +30,7 @@ import java.util.Set;
* @version 1.0
*/
@Controller
@CrossOrigin(origins = "*", maxAge = 3600)
public class RedisRsetController {
private static Logger logger = LoggerFactory.getLogger(RedisRsetController.class);
@Autowired
......@@ -77,6 +75,7 @@ public class RedisRsetController {
* ssdw:省份 山西:14
* type::CODE_UNIT
*/
@RequestMapping(value = "/UpdateRedisRest",method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public XzxtRestResult UpdateRedisRest(String ssdw,String type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment