问题 Why code from "Spring in action 5" don't work (keyHolder.getKey() return null, but entity is saved in DB)? private long savePizzaInfo(Pizza pizza) { pizza.setCreatedAt(new Date()); PreparedStatementCreator psc = new PreparedStatementCreatorFactory( "insert into PIZZA (name, createdAt) values (?, ?)", Types.VARCHAR, Types.TIMESTAMP ).newPreparedStatementCreator( Arrays.asList( pizza.getName(), new Timestamp(pizza.getCreatedAt().getTime()))); KeyHolder keyHolder = new GeneratedKeyHolder();