java错误提示

Exception in thread “main” org.apache.ibatis.exceptions.PersistenceException:

Error opening session. Cause: java.lang.NullPointerException

Cause: java.lang.NullPointerException

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSessionFromDataSource(DefaultSqlSessionFactory.java:100)
at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSession(DefaultSqlSessionFactory.java:47)
at app.test.main(test.java:23)

Caused by: java.lang.NullPointerException
at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSessionFromDataSource(DefaultSqlSessionFactory.java:95)
… 2 more
解决办法:在配置文件中单词写错误,仔细检查

你可能感兴趣的:(分析与见解,java,mybatis中错误)