zoukankan      html  css  js  c++  java
  • tomcat下iims的配置感悟

    1、没有想(意识)到清楚:resin下的web.xml 和tomcat下的web.xml是不同的。

    2、对于connect读取配置文件以及连接数据库根本就没有意识。

        

    /**
    * 获取本系统DB配置的文件
    *
    * @return
    */
    private static Reader getDBConfigReader()
    {
    Reader reader = null;

    try
    {
    // IN Resin JAR for Web call interface, it works under the ../WEB-INF/ directory
    // There are conf, lib, classes directories here.
    reader = Resources.getResourceAsReader("../" + RESOURCE);
    if (reader != null)
    System.out.println("CRT: Initialize DB from Web Server Application.");
    }
    catch (IOException e)
    {
    try
    {
    //IN Application model
    reader = new FileReader(RESOURCE);
    }catch (Exception e1) {e1.printStackTrace();}
    }

    if (reader == null)
    System.out.println("CRT: Error while initializing DB.");

    return reader;
    }

    3、eclipse下的工程发布有问题,却没有按照路径去找,一个劲的瞎试。

    4、映射配置等为题根本就不懂。

    习惯决定未来

  • 相关阅读:
    7-1 抓老鼠啊~亏了还是赚了?
    7-1 币值转换
    7-1 打印沙漏
    打印沙漏
    第十周作业
    第九周作业
    第八周作业
    第七周作业
    7-1 判断上三角矩阵 (15 分)
    第二次实验过程
  • 原文地址:https://www.cnblogs.com/mxh1099/p/4877510.html
Copyright © 2011-2022 走看看