gothinkster / spring-boot-realworld-example-app

Example Spring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.
MIT License
1.3k stars 677 forks source link

Without mybatis-config.xml #12

Closed kazuki43zoo closed 5 years ago

kazuki43zoo commented 5 years ago

I propose to use the spring boot configuration properties feature instead of mybatis-config.xml on MyBatis's configuration.

aisensiy commented 5 years ago

What about the typeHandlers?

kazuki43zoo commented 5 years ago

What about the typeHandlers?

You can use the package based scan feature as follow:

mybatis.type-handlers-package=io.spring.infrastructure.mybatis