java.lang.ExceptionInInitializerError • 1 • 2 • 3
原因:
- 没有读取到到mapper文件
解决办法:
- 在build中配置resource,来防止我们资源导出失败的问
<build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> <resource> <directory>src/main/java</directory> <includes> <include>**/*.poroperties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> </resources> </build>