package com.moral.controller; import com.alibaba.fastjson.JSONObject; import org.springframework.stereotype.Controller; 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.servlet.ModelAndView; import java.util.Map; /** * 所有地图接口都放在此处 */ @Controller @RequestMapping("map") public class MapController { @RequestMapping(value = "/main-page", method = RequestMethod.GET) public String map(){ ModelAndView mv = new ModelAndView("map"); return "map"; } }