|
@@ -1,6 +1,7 @@
|
|
|
package com.xt.js.gkaq.web.ctl;
|
|
|
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
+import org.apache.shiro.authz.annotation.RequiresAuthentication;
|
|
|
import org.apache.shiro.authz.annotation.RequiresRoles;
|
|
|
import org.apache.shiro.subject.Subject;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -19,6 +20,7 @@ public class LoginCtl extends BaseCtl {
|
|
|
return "sys/login";
|
|
|
}
|
|
|
|
|
|
+ @RequiresAuthentication
|
|
|
@RequestMapping(value = "/index")
|
|
|
public String index() {
|
|
|
return "sys/index";
|