Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wildcard on package scanning feature #314

Closed
kazuki43zoo opened this issue Mar 30, 2019 · 0 comments
Closed

Support wildcard on package scanning feature #314

kazuki43zoo opened this issue Mar 30, 2019 · 0 comments
Assignees
Milestone

Comments

@kazuki43zoo
Copy link
Member

kazuki43zoo commented Mar 30, 2019

See #301 (comment).

Description

In this changes, can specify a wildcard at mybatis.type-aliases-package and mybatis.type-handlers-package property as follow:

mybatis.type-aliases-package=com.example.**.model
mybatis.type-handlers-package=com.example.*.typehandler

Solution

This feature has been supported by mybatis-spring 2.0.1.

Note

This feature does not apply to mtbatis-config.xml because this feature was supported by mybatis-spring. Therefore, following configuration is invalid.

<!-- ... -->
<typeAliases>
  <package name="com.example.**.model"/> <!-- Invalid!! -->
</typeAliases>
<!-- ... -->
<typeHandlers>
  <package name="com.example.*.typehandler"/> <!-- Invalid!! -->
</typeHandlers>
<!-- ... -->

Related Links

@kazuki43zoo kazuki43zoo added this to the 2.1.0 milestone Mar 30, 2019
@kazuki43zoo kazuki43zoo modified the milestones: 2.1.0, 2.0.1 Apr 4, 2019
@kazuki43zoo kazuki43zoo self-assigned this Apr 4, 2019
@kazuki43zoo kazuki43zoo changed the title Consider to support wildcard on package scanning feature Support wildcard on package scanning feature Apr 6, 2019
kazuki43zoo added a commit that referenced this issue Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant