【问题标题】:Issue in Struts migration from 2.1.8 to 2.3.32Struts 从 2.1.8 迁移到 2.3.32 的问题
【发布时间】:2017-03-17 04:24:11
【问题描述】:

注册拦截器类时捕获异常 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor-interceptor

将 Struts 从 2.1.8 迁移到 2.3.32 时遇到此错误

【问题讨论】:

  • 请阅读How to ask并编辑您的问题。
  • 你在这个问题上付出的努力令人不安
  • 你能提供一个 jar 列表,也许还有你的 struts xml(虚拟版本)吗?

标签: struts2 migration


【解决方案1】:

AnnotationValidationInterceptor 已在struts-default.xml 中注册。

要使用这个拦截器,你的包应该扩展struts-default。看看如何package configuration

<struts>
  <package name="employee" extends="struts-default"...

【讨论】:

    猜你喜欢
    • 2016-04-12
    • 2017-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多