@At
@Filters
public int count() { // 统计用户数的方法,算是个测试点
return dao.count(User.class);
}
======这个返回正确的数字===============
@At
@Filters
@Ok("raw")
public void test() {
System.out.println("进入test");
Subject subject = SecurityUtils.getSubject();
log.debug("isAuthenticated=" + subject.isAuthenticated());
log.debug("isPermitted=" + subject.isPermitted("authority:permission:update"));
}
================返回302=======
HEADERS
Server: Apache-Coyote/1.1
Location: /sysuser/login
Content-Length: 0
Date: Thu, 15 Jun 2017 08:57:56 GMT
raw
COMPLETE REQUEST HEADERS
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Content-Type: application/json
Cookie: JSESSIONID=82ABF51AAB0C47C0757E427711F90F5A
Origin: chrome-extension://aejoelaoggembcahagimdiliamlcdmfm
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Content-Type: application/json
Cookie: JSESSIONID=82ABF51AAB0C47C0757E427711F90F5A
Origin: chrome-extension://aejoelaoggembcahagimdiliamlcdmfm
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36