【问题标题】:Does contextloaderlistener has visibility over MVC configuration in Spring MVC?contextloaderlistener 是否对 Spring MVC 中的 MVC 配置具有可见性?
【发布时间】:2015-11-19 16:00:26
【问题描述】:

我正在研究弹簧安全。我在 security.xml 中添加了 tag-> global-method-security pre-post-annotations="enabled" 以启用 @PreAuthorize 注释。我是否也需要在 spirngmvc-config.xml 文件中添加它? contextloaderlistener 对 MVC 配置有可见性吗?

【问题讨论】:

  • 了解这些的最佳方法是查看文档。

标签: spring spring-mvc spring-security


【解决方案1】:

contextloaderlistener 无法查看 MVC 配置。你还需要在 mvc 配置文件中添加 global-method-security 标签。

【讨论】:

    猜你喜欢
    • 2016-04-16
    • 2012-09-01
    • 2017-06-12
    • 2013-12-15
    • 2012-06-04
    • 2012-04-09
    • 2012-06-16
    • 2016-06-07
    • 2014-06-08
    相关资源
    最近更新 更多