Antiloveg 8 years ago
parent
commit
8caf4ab172

+ 4 - 4
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -86,10 +86,10 @@ public class WebpageController extends BaseController {
 		return userLogin(request,modelview,"/user/account/services");
 	}
 	
-	@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
+	/*@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
 	public String adminIndex(HttpServletRequest request, ModelAndView modelview) {
 		return "/admin/index";
-	}
+	}*/
 	
 	@RequestMapping(value = "/admin/login", method = RequestMethod.GET)
 	public String adminLogin(HttpServletRequest request, ModelAndView modelview) {
@@ -146,10 +146,10 @@ public class WebpageController extends BaseController {
 		return adminToLogin(request,modelview,"/admin/servicesManage/copyright");
 	}
 	
-	/*@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
+	@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
 	public ModelAndView adminHome(HttpServletRequest request, ModelAndView modelview) {
 		return adminToLogin(request,modelview,"/admin/index");
-	}*/
+	}
 	
 	@RequestMapping(value = "/portal/search/achievement", method = RequestMethod.GET)
 	public ModelAndView portalSearchAchievement(HttpServletRequest request, ModelAndView modelview) {

+ 1 - 0
src/main/resources/shiro_base_auth.ini

@@ -5,6 +5,7 @@
 /user/login=anon
 /user/signIn.html=anon
 /admin/login=anon
+/admin/index.html=anon
 /signin=anon
 /managesignin=anon
 /register=anon