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 id="insert" parameterType="com.milk.pojo.TbItem" >
    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})
  </insert>

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

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值