I use spring boot and mybatis to insert record to h2 databse,also,use auto increasing id. first,I and library:
org.mybat