Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用時
<s:token/>
Struts 2では、ログにこの警告メッセージが表示されました
WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - <Error setting expression 'struts.token.name' with value '[Ljava.lang.String;@7023f'>
どうすればそれを回避できますか?
よろしく
WARNを回避できないことがわかりましたが、Log4Jでフィルターを設定できます。
これをチェックして...
https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-MissingProperties
同じエラーが発生しました。私の場合、struts.xml に次のものがありませんでした。
<interceptor-ref name="token"/>
私の行動の中で。