美文网首页
2018-11-26

2018-11-26

作者: 20024jok | 来源:发表于2018-11-26 22:10 被阅读0次

```

        public void TestSpring() {

        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

        traineeInfoService = ctx.getBean(TraineeInfoService.class);

        //

        // List<TraineeInfo>traineeInfos = traineeInfoService.getAllTraineeNames();

        // System.out.println(traineeInfos);

        System.out.println(traineeInfoService.getTraineeInfoById(8L));

        ((ConfigurableApplicationContext) ctx).close();

        }

        //

```

相关文章

网友评论

      本文标题:2018-11-26

      本文链接:https://www.haomeiwen.com/subject/dtwiqqtx.html