|
|
|
@ -4,6 +4,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
@ -11,18 +12,30 @@ import com.platform.utils.Configs;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
public class DefaultController {
|
|
|
|
|
@RequestMapping("/")
|
|
|
|
|
public ModelAndView defaultHandler(HttpServletRequest req, HttpServletResponse res){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/tes")
|
|
|
|
|
public Object defaultHandler(HttpServletRequest req, HttpServletResponse request) {
|
|
|
|
|
//处理不匹配的请求
|
|
|
|
|
System.out.println("index");
|
|
|
|
|
return new ModelAndView("index");
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
System.out.println("fsdfds");
|
|
|
|
|
|
|
|
|
|
return "listAll";
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
|
|
return "result";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/test")
|
|
|
|
|
public void test(HttpServletRequest req, HttpServletResponse res){
|
|
|
|
|
public ModelMap test(HttpServletRequest req, HttpServletResponse res){
|
|
|
|
|
//System.out.println(Class.class.getClass().getResource("/").getPath());
|
|
|
|
|
System.out.println(Configs.EXTRACT_LOG_LOCALTION);
|
|
|
|
|
return new ModelMap();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|