1.配置文件中mysql.cj.jdbc.Driver爆红;
在pom文件中为m'ysql-connector-java添加8的版本号。
2. Error updating database. Cause: java.sql.SQLException: Field 'id' doesn't have a default value;因为我在dao层添加了
@TableId(type = IdType.AUTO)使id列自增,但数据库没有id列自增;
所以MySQL里执行了alter table user modify id BIGINT(20) auto_increment语句;
3. Type interface XXXMapper is not known to the MapperRegistry;
4. Error running 'xxxTests.xxx':Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2;