Stripes 1.6 缺少 SpringInterceptor
Stripes 1.6 missing SpringInterceptor
刚刚将应用程序从 Stripes 版本 1.5.7 升级到 1.6.0,但似乎 Spring 框架集成自 Stripes 1.5.7 以来已更改。
我现在收到一条错误消息,指出缺少 SpringInterceptor
class:
Could not find class [net.sourceforge.stripes.integration.spring.SpringInterceptor] specified by the configuration parameter [Interceptor.Classes]. This value must contain fully qualified class names separated by commas.
此 class 在 web.xml
中请求:
<init-param>
<param-name>Interceptor.Classes</param-name>
<param-value>net.sourceforge.stripes.integration.spring.SpringInterceptor</param-value>
</init-param>
确实这个 class 不再出现在包 net.sourceforge.stripes.integration.spring
中。
我想我在 web.xml
中的 Stripes 配置应该反映这些变化,但我不知道如何去做。
这种形式的 Spring 集成在 Stripes 1.6.0 版中已弃用 (https://stripesframework.atlassian.net/browse/STS-633?filter=10230);您必须改用以下内容:
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>net.sourceforge.stripes.integration.spring</param-value>
</init-param>
刚刚将应用程序从 Stripes 版本 1.5.7 升级到 1.6.0,但似乎 Spring 框架集成自 Stripes 1.5.7 以来已更改。
我现在收到一条错误消息,指出缺少 SpringInterceptor
class:
Could not find class [net.sourceforge.stripes.integration.spring.SpringInterceptor] specified by the configuration parameter [Interceptor.Classes]. This value must contain fully qualified class names separated by commas.
此 class 在 web.xml
中请求:
<init-param>
<param-name>Interceptor.Classes</param-name>
<param-value>net.sourceforge.stripes.integration.spring.SpringInterceptor</param-value>
</init-param>
确实这个 class 不再出现在包 net.sourceforge.stripes.integration.spring
中。
我想我在 web.xml
中的 Stripes 配置应该反映这些变化,但我不知道如何去做。
这种形式的 Spring 集成在 Stripes 1.6.0 版中已弃用 (https://stripesframework.atlassian.net/browse/STS-633?filter=10230);您必须改用以下内容:
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>net.sourceforge.stripes.integration.spring</param-value>
</init-param>