.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.lang.NullPointerException
### Cause: java.lang.NullPointerException] with root cause
用的spring-boot
最后是扫描包的问题,没法注入
调整xxxApplication的位置,移到上面一层(可能是N层)的包里去