0

I was looking at this wonderful mybatis example

http://mybatis.co.uk/index.php/2010/09/mybatis-simple-and-complete-example.html

that uses mostly annotations but was hoping for an @MyBatisDao annotation so I don't need to ever go back to some mapping file and add a line for each dao that I add to the system. I obviously will just use mapping for now but was just curious if there was a way???

4

1 に答える 1

3

package 要素を使用して、マッパーをスキャンできます (3.1 以降)。

MyBatis 3.1 リファレンス ガイド

于 2012-05-20T05:28:15.900 に答える