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.
我想在 mybatis 映射器中定义字符串数组并将其作为 java 静态方法的参数传递。这是可能的?
找到了一种解决方案,我可以在“绑定”标签中定义数组,然后将其作为参数传递给方法:
<bind name='exampleArray' value='{"one", "two", "three"}'/> ${@com.example.MybatisUtil@generate(exampleArray)}