出现情况:

Inferred type 'S' for type parameter 'S' is not within its bound;

should extends xxxxxx

出现这种问题的原因:

  SpringBoot 版本问题,SpringBoot 2.0后新特性。

解决方法:

  1、修改版本,降为SpringBoot 1.5.x;

  2、修改代码:

修改前:  return this.userRepository.findOne(id);
修改后:  return this.userRepository.findById(id).orElse(null);

 
                    
            
                

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-06-09
  • 2021-07-28
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-08-25
  • 2021-07-06
相关资源
相似解决方案