问答详情
源自:-

"can not resolve method 'queryById'"

@Test
public void testQueryById() throws Exception {
   long id=1000;
   Seckill seckill = new Seckill().queryById(id);
   System.out.println(seckill.getName());
   System.out.println(seckill);

}

加粗的部分识别不出来,"can not resolve method 'queryById'"

提问者:qq_时光机_11 2017-03-28 18:34

个回答

  • 慕少2270795
    2020-02-17 19:58:04

    private SeckillDao seckillDao;我是这个地方写错了,出现了和你一样的问题,你可以看看这里