According to the user manual, I can use the file path instead of the resource:
<mappers>
<mapper resource="org/mybatis/builder/AuthorMapper.xml"/>
</mappers>
<mappers>
<mapper url="file:///var/sqlmaps/AuthorMapper.xml"/>
</mappers>
in my project I am trying to put my xperter mapper outside the project and I am doing this:
<mapper url="file://D:/Mappers/ComponentMapper1.xml" />
The output of my log4j console is:
Error building SqlSession.
The error may exist in file:
Cause: org.apache.ibatis.builder.BuilderException: Error parsing
SQL Mapper Configuration. Cause: java.net.UnknownHostException: D
Is this a mistake or am I doing something wrong?
source
share