Inferred type 'S' for type parameter 'S' is not within its bound;
should extends xxxxxx
出现这种问题的原因是,springboot 版本问题,将 2。1 版本换成 1。5。4 版本。
或者是将代码改写一下
return girlRepository.findOne(id);
return girlRepository.findById(id).orElse(null);
本文介绍了如何解决Inferredtype'S'问题,通过调整Spring Boot版本从2.1到1.5.4,或者修改代码使用findById(id).orElse(null)替代findOne(id),可以有效避免类型参数超出边界的问题。
Inferred type 'S' for type parameter 'S' is not within its bound;
should extends xxxxxx
出现这种问题的原因是,springboot 版本问题,将 2。1 版本换成 1。5。4 版本。
或者是将代码改写一下
return girlRepository.findOne(id);
return girlRepository.findById(id).orElse(null);
8929
1万+