警告: Error setting expression 'user.age' with value '[Ljava.lang.String;@1845027c' ognl.OgnlException: target is null for setProperty(null, "age", [Ljava.lang.String;@1845027c) at ognl.OgnlRuntime.set

  struts2 表单提交数据报错

      

   然后配置局部类型转换器

  

  从视频里配置的局部类型转换文件总是会报这错,不知道为啥,真是奇怪,视频里倒是没有报错

  解决方案,将局部配置改为全局配置

  

原文地址:https://www.cnblogs.com/hello001/p/7251124.html