@Override public ProductCategory findOne(Integer categoryId) { return repostitory.findOne(categoryId); }报错
解决方案:
1:jdk版本问题(返回类是Optional<Girl>, Optional是jdk8自带的)
2:也是springboot版本问题,版本太高的原因
3:或者直接换成getOne(方法)
@Override public ProductCategory findOne(Integer categoryId) { return repostitory.findOne(categoryId); }报错
解决方案:
1:jdk版本问题(返回类是Optional<Girl>, Optional是jdk8自带的)
2:也是springboot版本问题,版本太高的原因
3:或者直接换成getOne(方法)