Service流程:1、检查商品余量大于零2、检查是否存在重复下单;3、执行减库存。 加了事务不加锁: @Transactional public Excution executeSeckill(long seckillId, String md5, long userPhone) throws SeckillClosedException, SeckillRepeatException, SeckillException { //... Seckill seckill = seckillDao.queryById(seckillId); ...