SOA服务架构—— Table 'milk.tb_item_copy' doesn't exist(penguin)

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'milk.tb_item_copy' doesn't exist

后台控制台console显示已经添加成功了,但是后台管理系统中刷新之后也没显示新添加的数据,而数据库当中也没有新添加的数据

=====================================================================

原因就是:


    insert into tb_item_copy (id, title, sell_point,
      price, num, barcode,
      image, cid, status,
      created, updated)
    values (#{id,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{sellPoint,jdbcType=VARCHAR},
      #{price,jdbcType=BIGINT}, #{num,jdbcType=INTEGER}, #{barcode,jdbcType=VARCHAR},
      #{image,jdbcType=VARCHAR}, #{cid,jdbcType=BIGINT}, #{status,jdbcType=TINYINT},
      #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP})
 

====================================

在Mapper.xml里面:要添加的数据库表的名字写错了,所以说他添加到另外的数据库表中了

 

你可能感兴趣的:(SOA服务架构—— Table 'milk.tb_item_copy' doesn't exist(penguin))