这是两个感念--
你要添加事务注解:
@Transactional
@Modifying
@Query(value="insert into jpa_person(id,name,gender,birth) values(?,?,?,?)",nativeQuery=true)
public int insertPerson2(Integer id,String name,Integer gender,Date birth);
你这个路径不对,helloworld.java要在E://跟目录下才能编译,否则要进到helloworld.java的目录,cd e://xxx/xx/
是的呢