What is difference between class path , file system?

前端 未结 3 1834
执笔经年
执笔经年 2020-12-15 22:19

I know that:

  1. ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");

    loads context definition from an XML

3条回答
  •  攒了一身酷
    2020-12-15 23:12

    FileSystemXmlApplicationContext- You need to provide complete full path of xml bean ClassPathXmlApplicationContext - In this case you DONOT need to set full path, as long as classpath is set

提交回复
热议问题