From 6e68a67686b95a313ef901c4a6f2220224ad92d4 Mon Sep 17 00:00:00 2001 From: lili Date: Thu, 8 Sep 2016 09:05:40 +0800 Subject: [PATCH] nothing --- .classpath | 6 +---- build/classes/.gitignore | 1 + .../controller/DefaultController.class | Bin 1342 -> 1514 bytes .../controller/DefaultController.java | 25 +++++++++++++----- 4 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 build/classes/.gitignore diff --git a/.classpath b/.classpath index 7e729e6..bb361b4 100644 --- a/.classpath +++ b/.classpath @@ -2,11 +2,6 @@ - - - - - @@ -14,5 +9,6 @@ + diff --git a/build/classes/.gitignore b/build/classes/.gitignore new file mode 100644 index 0000000..c2d9872 --- /dev/null +++ b/build/classes/.gitignore @@ -0,0 +1 @@ +/com/ diff --git a/build/classes/com/platform/controller/DefaultController.class b/build/classes/com/platform/controller/DefaultController.class index 9194050341ac120c7dd7616d178826116f726d0f..004ef7972075e7225da53deafe69724a667733ce 100644 GIT binary patch delta 565 zcmZvYPfrt36vfY-na-OIMf(Sck|r1xuxJ@*QNb#ThLwVeu)u|j>GahUCZ){065@uv zuA27=To|?u3rsX2vh_=_=R**#LxL{cy!+n0=brP+J9f_ovcJ!N90RE0rGP;w^}d#R z3*RW{oxaO%`n$dt`t6V2+xn&ql>R{Vl;tTI>l1n<>}K3(He&4>%c~CV5JcFD)lwL` z7{{c*1flTPVtFr+9o5=yXK)WT;d&=(wbh#PgRS+*52S-Bf*r}Y8!G+9s5l~$J6#zo zePWd7ND_wM{Ku_E7)(r7{LZ>x4_Rk1pdv)Q(`K>T@>aGRGUO>MQ-9c18jmn9@K|q{ zW99;$=uc+Z7I;b+)3Y=*^3RTo8qx%lvGjrYnXc)IRo&l*0gFGaaEPJ&=n;zf+x^w@ z5$@(oeGm^E4Dc72aQQxhRB}4F!QGq4U=&#t`3_87+Hh}>Uu=l`c#t?0P{uUJWFX*S zhP`HaZi8M6h;f!wP}RSz;m#ZjfHjtyTysoxh=+{y6Seo>@vP5HBjIqlf~nG&NV0ET ZE?i~juCjAjOtK9;Pqtq$Z<38A-~t91R_F<+C&7^N^_J;>a}}s+0K1CnP1Q% zXc1H{3JQ#%RX?R=KOj0Ph?^K@&Uw!{?>qzZ9q4M|uiw`$fDAUhP#BW!n`C?ImbK)E z5|JZ__25?AtvvSjC$BRMRr%x@IAH@5;0epwa^L z4#xH9Gp61UKhmQwn0=(G0*y|MA`pQOIs%kU4;%<0M2ftaM*^&$Eg(tL42xKz7^d17 zsR(WT1k6SXUaIXPI)c-NIBkg2Fu*DFe?9klALt?22Ji>m CUt1ag diff --git a/src/com/platform/controller/DefaultController.java b/src/com/platform/controller/DefaultController.java index 4722c5d..ab8070b 100644 --- a/src/com/platform/controller/DefaultController.java +++ b/src/com/platform/controller/DefaultController.java @@ -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(); } }