stay kafka Send message to another service,service implement sql, First time or before 2 The execution was normal C operation , But later 2 The following errors must occur in the following operations :

### Error updating database.  Cause:
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '93' for key 'PRIMARY'
### The error may exist in
com/crossoverjie/kafka/orderconsumer/mapper/StockOrderMapper.java (best guess)
### The error may involve
com.crossoverjie.kafka.orderconsumer.mapper.StockOrderMapper.insertSelective-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO stock_order  ( id,sid,name ) VALUES( ??? )
### Cause:
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '93' for key 'PRIMARY'
; SQL []; Duplicate entry '93' for key 'PRIMARY'; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '93' for key 'PRIMARY'

2018-05-21 16:38:31.273 [consumer-pool-0] TRACE o.s.t.i.TransactionInterceptor
- Completing transaction for
[com.crossoverjie.kafka.orderconsumer.service.impl.OrderServiceImpl.createOptimisticOrderUseRedisAndKafka]
after exception: java.lang.RuntimeException: 

According to the error prompt , The primary key already exists id=93 This data , It can't be inserted any more , The normal understanding is that 93 It already exists , Why new insert id How come the self increasing ones don't add up automatically ?

ours pojo Primary key set id annotation

Just take it out

Technology
©2019-2020 Toolsou All rights reserved,
be based on RK3399 PWM Drive development ( Essence 2020 year 6 month 3 Daily update ) TypeScript Detailed explanation of Chinese interface Map---Java judge Map Contains a key415 Status code to background error The shortest path of maze BFS algorithm (python realization )11-5 Output string at specified position Three methods of value transfer between non parent and child components Thread.getContextClassLoader And Thread.getClassLoader() difference [work] python read txt Last line of file Vue + Element-ui Drop down box for el-select Get extra parameters