利用 Apache Shiro 的 Grails 项目:LegacyShiroFilter 使用或覆盖已弃用的 API
Grails project leveraging Apache Shiro : LegacyShiroFilter uses or overrides a deprecated API
我正在开发一个使用 Apache Shiro 来保证安全的 grails 项目。我在编译或运行应用程序时收到此警告。
Note: /../shiro/grails/LegacyShiroFilter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
BuildConfig.groovy
plugins {
build ":tomcat:7.0.55"
compile ":scaffolding:2.1.2"
compile ':cache:1.1.8'
compile ":asset-pipeline:1.9.9"
runtime ":hibernate4:4.3.6.1" // or ":hibernate:3.6.10.18"
runtime ":database-migration:1.4.0"
compile ":shiro:1.2.1"
}
有什么想法吗?预先感谢您的帮助。
LegacyShiroFilter
扩展 org.apache.shiro.web.servlet.IniShiroFilter
已弃用。如果你去 plugin's page at grails.org 你会看到一个 link 插件源,你可以在其中阅读 class Javadoc(或在你的插件安装目录中阅读)它说
Its only reason for existence is to support the legacy security.shiro.filter.config
setting
即described in the release notes
the security.shiro.filter.config setting is deprecated in favour of security.shiro.filter.filterChainDefinitions + other configuration options. It will continue to work though.
我正在开发一个使用 Apache Shiro 来保证安全的 grails 项目。我在编译或运行应用程序时收到此警告。
Note: /../shiro/grails/LegacyShiroFilter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
BuildConfig.groovy
plugins {
build ":tomcat:7.0.55"
compile ":scaffolding:2.1.2"
compile ':cache:1.1.8'
compile ":asset-pipeline:1.9.9"
runtime ":hibernate4:4.3.6.1" // or ":hibernate:3.6.10.18"
runtime ":database-migration:1.4.0"
compile ":shiro:1.2.1"
}
有什么想法吗?预先感谢您的帮助。
LegacyShiroFilter
扩展 org.apache.shiro.web.servlet.IniShiroFilter
已弃用。如果你去 plugin's page at grails.org 你会看到一个 link 插件源,你可以在其中阅读 class Javadoc(或在你的插件安装目录中阅读)它说
Its only reason for existence is to support the legacy
security.shiro.filter.config
setting
即described in the release notes
the security.shiro.filter.config setting is deprecated in favour of security.shiro.filter.filterChainDefinitions + other configuration options. It will continue to work though.