[Solved] Error building SqlSession.The error may exist in XXXXXMapper/xml

 

Problem description

describe the problems encountered in the project here:
caused by: org.apache.ibatis.exceptions.PersistenceException:

Error building SqlSession.

The error may exist in XXXXXMapper/xml

Cause analysis:

1. Cannot find mapper file associated with; Error in mapper’s fully qualified name (primary cause)


Solution:

1. Check whether the corresponding mapper file name is correct
2. Check whether the fully qualified name corresponding to mapper file in the configuration file is correct. The fully qualified name is separated by “/”
quick copy file fully qualified name:
right click the target file as follows

Read More: