ava.lang.ExceptionInInitializerError Caused by: org.apache.ibatis.exceptions.PersistenceException:

ava.lang.ExceptionInInitializerError
Caused by: org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in mapper/blogMapper.xml
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource mapper/blogMapper.xml
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:80)
	at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:64)
	at com.fanlan.util.MybatiesUtils.<clinit>(MybatiesUtils.java:23)

Solve the problem: Note that the place I circled is where the package error is -> the mapper file mapping does not match, just modify the mapping.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45627031/article/details/112383303