accessible to the calling code, either bound to the org.apache.shir"/>
junit集成maven。 No SecurityManager accessible to the calling code, either bound to the org.apache.shir
启动JUNIT,检查到缺少SecurityManager。
需要在shiro.xml中加入
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod" value="org.apache.shiro.SecurityUtils.setSecurityManager"/>
<property name="arguments" ref="securityManager"/>
</bean>
更多推荐
junit集成maven。 No SecurityManager accessible to the calling code, either bound to
发布评论