Commit eb1f923e authored by 黎博's avatar 黎博

NavigateController新增跨域

parent 90b06e80
...@@ -7,6 +7,7 @@ import cn.qg.holmes.service.navigate.NavigateDetailService; ...@@ -7,6 +7,7 @@ import cn.qg.holmes.service.navigate.NavigateDetailService;
import cn.qg.holmes.service.navigate.NavigateModuleService; import cn.qg.holmes.service.navigate.NavigateModuleService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -16,6 +17,11 @@ import java.util.HashMap; ...@@ -16,6 +17,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/**
* 导航controller
* @author libo
*/
@CrossOrigin
@RestController @RestController
@RequestMapping("/navigate") @RequestMapping("/navigate")
public class NavigateController { public class NavigateController {
......
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