Hello,
If the directory structure is …
└── com
└── tutorial
└── mybatis
└── mapper
└── BlogMapper.xml
… the config should look as follows:
<mapper resource="com/tutorial/mybatis/mapper/BlogMapper.xml"/>
If MyBatis finds the XML mapper with the following config ….
<mapper resource="com.tutorial.mybatis.mapper/BlogMapper.xml"/>
… it means that the directory structure is wrong.
└── com.tutorial.mybatis.mapper
└── BlogMapper.xml
And that is why specifying class
or package
does not work.
It is difficult to differentiate the directory structures in some IDEs.
Check it using the system’s file manager (e.g. Finder, Explorer).
Regards,
Iwao
--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/c8d1e6ff-093a-4071-a680-5362c3f6c562n%40googlegroups.com.