Unless the situation in the shops improves, in ten years' time we may all have to subject ourselves to a body-search every time we go into a store to buy a tin of beans!
除非商店里的情况有所改善,否则在十年的时间里,我们每次进商店买一罐豆子都可能不得不接受身体检查!
One way of getting around this problem is to create a custom SubjectHolder class that wraps a static ThreadLocal to store the current Subject.
一种解决这个问题的方法是创建一个自定义subjectholder类,它包装了一个static ThreadLocal以存储当前Subject。
The realm element under default-subject specifies the security-realm, and the id element specifies the id of the subject as configured in the credential store.
default - subject下的realm元素指定安全领域,id元素指定凭据库中所配置的主体的id。
应用推荐