我先运行servergenerator生成时爆出这个错误,我发现是数据库理没有course的表
Exception in thread “main” com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘courseimooc.course’ doesn’t exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
日志打印出
当我运行generator-mybatis生成器时发现这个错误
WARNING] Table configuration with catalog null, schema null, and table course did not resolve to any tables