Closed
Description
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>
<!-- ... -->