code: private static Properties loadWithTomcatMode(final String propertyFilePath)
              throws Exception {
  
          Properties props = new Properties();
  
          try {
  
              // 先用TOMCAT模式进行导入
              // http://blog.csdn.net/minfree/article/details/1800311
              // http://stackoverflow.com/questions/3263560/sysloader-getresource-problem-in-java
              URL url = ClassLoaderUtil.getLoader().getResource(propertyFilePath);
              URI uri = new URI(url.toString());
              props.load(new FileInputStream(uri.getPath()));
  
          } catch (Exception e) {
  
              // http://stackoverflow.com/questions/574809/load-a-resource-contained-in-a-jar
              props.load(ClassLoaderUtil.getLoader().getResourceAsStream(propertyFilePath));
          }
          return props;
      }
docs: @param propertyFilePath
  
  @return void
  
  @Description: 使用TOMCAT方式来导入
  @author liaoqiqi
  @date 2013-6-19