请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

慕沐3024221 2018-03-26 18:39:19
@Test
public void findOneTest(){
    ProductCategory productCategory = repository.findById(1).get();
    System.out.println(productCategory);
}

springboot2.0的写法

2 回复 有任何疑惑可以回复我~
廖师兄 2018-03-11 00:58:43

看看你的这个repository里面怎么写的,spring boot版本和我视频里一致吗

0 回复 有任何疑惑可以回复我~
  • springboot2.0该怎么处理呢
    回复 有任何疑惑可以回复我~ 2018-03-26 16:59:51
  • @Test
        public void findOneTest(){
            ProductCategory productCategory = repository.findById(1).get();
            System.out.println(productCategory);
        }
    springboot2.0这样写就OK了
    回复 有任何疑惑可以回复我~ 2018-03-26 18:37:39
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号