[英]How can I create a COPYfunction with myBatis mapper in the xml file?
[英]MyBatis - how to define array in mybatis xml mapper file
我想在 mybatis 映射器中定義字符串數組並將其作為 java static 方法的參數傳遞。 這是可能的?
找到了一種解決方案,我可以在“綁定”標簽中定義數組,然后將其作為參數傳遞給方法:
<bind name='exampleArray' value='{"one", "two", "three"}'/>
${@com.example.MybatisUtil@generate(exampleArray)}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.