springboot JPA 取消小驼峰到下划线映射,JPA取值部分字段为NULL的问题 这种问题多半是因为数据库字段是小驼峰命名,虽然实体字段和数据库字段一致,但是 JPA 的生成的sql语句还是把小驼峰转化为 下划线了所以查不到; #错误生成sql select `appointmen0_`.id as id1_0_, appointmen0_.appointment_code as appointm2_0_, appointmen0_.appointment_time as appointm3_0_, appointmen0_.arrival_time as arrival_4_0_