我是借助于 dbunit-maven-plugin 来使用 DbUnit 的,数据库是 MySql,在使用 mvn dbunit:export 指令时,总报错:
Embedded error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc from unmi_test_table order by Id' at line 1
若是加上 -e 或 -X 参数,如 mvn dbunit:export -e 时可以看到更详细的异常信息:
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing export 阅读全文 >>