You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
生成时出现,但我是新项目,什么都没生成过
[WARNING] Column id, specified as a generated key column in table t_user, does not exist in the table.
[WARNING] Column id, specified as a generated key column in table t_user, does not exist in the table.
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
CREATE TABLE t_user ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(50) NOT NULL DEFAULT '' COMMENT '用户名', password VARCHAR(50) NOT NULL DEFAULT '' COMMENT '密码', sex TINYINT(4) NOT NULL DEFAULT '0' COMMENT '性别 0=女 1=男', deleted TINYINT(4) UNSIGNED NOT NULL DEFAULT '0' COMMENT '删除标志,默认0不删除,1删除', update_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (id)
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户表';
生成时出现,但我是新项目,什么都没生成过
[WARNING] Column id, specified as a generated key column in table t_user, does not exist in the table.
[WARNING] Column id, specified as a generated key column in table t_user, does not exist in the table.
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\entities\User.java was overwritten
[WARNING] Existing file F:\JavaWeb\generatetest2\src\main\java\com\atguigu\cloud\mapper\UserMapper.java was overwritten
CREATE TABLE
t_user
(id
INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,username
VARCHAR(50) NOT NULL DEFAULT '' COMMENT '用户名',password
VARCHAR(50) NOT NULL DEFAULT '' COMMENT '密码',sex
TINYINT(4) NOT NULL DEFAULT '0' COMMENT '性别 0=女 1=男',deleted
TINYINT(4) UNSIGNED NOT NULL DEFAULT '0' COMMENT '删除标志,默认0不删除,1删除',update_time
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',create_time
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',PRIMARY KEY (
id
)) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户表';
我的实体类中只有id,username,我尝试了targetRuntime="MyBatis3"和MyBatis3Simple都不行
我尝试其他表(t_pay)还是相同的属性,可以全部生成,且没有上面的warning
The text was updated successfully, but these errors were encountered: