采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
@Test public void findOneTest(){ ProductCategory productCategory = repository.findById(1).get(); System.out.println(productCategory); }
springboot2.0的写法
看看你的这个repository里面怎么写的,spring boot版本和我视频里一致吗
springboot2.0该怎么处理呢
@Test public void findOneTest(){ ProductCategory productCategory = repository.findById(1).get(); System.out.println(productCategory); } springboot2.0这样写就OK了
登录后可查看更多问答,登录/注册
从0到1开发中小型企业级Java应用,并学会迭代重构技巧
9.3k 10
3.7k 4
7.2k 9
2.7k 32
4.6k 26
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号