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.
Velocity エンジンが #macro 署名を尊重するようにするにはどうすればよいですか? テンプレートでマクロを呼び出そうとすると、例:
#myTestMacro($arg1 $arg2)
定義時に異なる署名を持つもの 例:
#macro(myTestMacro $arg)
Velocity はエラーをスローするほどスマートなので、上記の例で無効な数の引数をキャッチできますか?
構成で、を設定しvelocimacro.arguments.strict=trueます。
velocimacro.arguments.strict=true