In the previous chapter, we had seen how we can configure mapped statements in XML Mapper files. MyBatis supports configuring mapped statements using annotations also. When using annotation-based Mapper interfaces you don't need to configure SQL queries in XML files. If you want, you can use XML and annotation-based mapped statements together.
In this chapter we will cover the following topics:
MyBatis provides annotation-based configuration ...