报错:
Inferred type 'S' for type parameter 'S' is not within its bound;should extends xxxxxx
Inferred type 'S' for type parameter 'S' is not within its bound; should extend 'com.tzb.myspringboot.dao.entity.PubLog'
出现这种问题的原因是,springboot 版本问题,将 2。1 版本换成 1。5。4 版本。
或者是将代码改写一下
return girlRepository.findOne(id);
改为:
return girlRepository.findById(id).orElse(null);