- 在启动Spring Boot项目时出现:Table 'epos.hibernate_sequence' doesn't exist;解决方案:将ID生成略组改成@GeneratedValue(strategy = GenerationType.IDENTITY).
- 在使用springboot 方法报错:Inferred type 'S' for type parameter 'S' is not within its bound; should extends xxxxxx;解决方案:a.springboot 版本问题,将 2.0.1 版本换成 1.5.4 版本;b.将girlRepository.findOne(id); 改为 girlRepository.findById(id).orElse(null)或girlRepository.findById(id).get();
- 注解在类上属性上 //返回不为空的字段属性 : @JsonInclude(JsonInclude.Include.NON_NULL)