Skip to content

Conversation

kazuki43zoo
Copy link
Member

@kazuki43zoo kazuki43zoo commented May 2, 2019

Variable-length arguments work well with JavaConfig.

  • Variable-length argument (simple 👍 )
factory.setTypeHandlers(new MyTypeHandler());
  • Array argument (redundant 😢)
factory.setTypeHandlers(new TypeHandler[]{new MyTypeHandler()});

@kazuki43zoo kazuki43zoo added the polishing Improve a implementation code or doc without change in current behavior/content label May 2, 2019
@kazuki43zoo kazuki43zoo added this to the 2.0.2 milestone May 2, 2019
@kazuki43zoo kazuki43zoo self-assigned this May 2, 2019
@kazuki43zoo kazuki43zoo merged commit 2c0616b into mybatis:master May 2, 2019
@kazuki43zoo kazuki43zoo deleted the variable-length-argument branch May 2, 2019 15:45
@kazuki43zoo kazuki43zoo added enhancement Improve a feature or add a new feature and removed polishing Improve a implementation code or doc without change in current behavior/content labels May 2, 2019
pulllock pushed a commit to pulllock/mybatis-spring that referenced this pull request Oct 19, 2023
Change to Variable-length argument from array argument on SqlSessionFactoryBean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant