DbToXML.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:community-edition-old 作者:
public static void main(String[] args)
{
    if (args.length != 2)
    {
        System.err.println("Usage:");
        System.err.println("java " + DbToXML.class.getName() + " <context.xml> <output.xml>");
        System.exit(1);
    }
    String contextPath = args[0];
    File outputFile = new File(args[1]);

    // Create the Spring context
    FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(contextPath);
    DbToXML dbToXML = new DbToXML(context, outputFile);

    dbToXML.execute();

    // Shutdown the Spring context
    context.close();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号