Spring @Secured()日志中是否显示任何语句。。。?

Spring @Secured()日志中是否显示任何语句。。。?,spring,spring-mvc,spring-security,spring-ws,Spring,Spring Mvc,Spring Security,Spring Ws,我用@Secured注释了一个bean类,当我调用该bean时,即使没有用户登录,也不会抛出任何安全异常。我正在尝试调试它。我的问题是,当我们用@Secured注释一个方法/类时,当spring应用程序启动时,日志上是否打印了任何语句 我已经在appcontext.xml中添加了日志bean <bean class="org.springframework.security.event.authentication.LoggerListener"/><bean class="o

我用@Secured注释了一个bean类,当我调用该bean时,即使没有用户登录,也不会抛出任何安全异常。我正在尝试调试它。我的问题是,当我们用@Secured注释一个方法/类时,当spring应用程序启动时,日志上是否打印了任何语句

我已经在appcontext.xml中添加了日志bean

<bean class="org.springframework.security.event.authentication.LoggerListener"/><bean class="org.springframework.security.event.authorization.LoggerListener"/>   


有人能告诉我,在读取日志以检查我的方法是否受@securied保护时,我应该注意什么语句吗?

如果您的Spring Security设置正确,您应该会在日志文件中看到很多行,告诉您“SpringSecurityFilterChain”设置正确。你看到这些了吗?我猜你的配置不正确-我相信我在以前的帖子中回答了这个问题

查看您的日志,这里是您的问题:

Security interception not required for public secure object: FilterInvocation: URL: /testapplication.html
在您的整个安全配置中,似乎没有正确指定应用程序(URL)的哪些部分应该受到保护。SpringSecurity认为您的整个应用程序是开放的