- 浏览: 31258 次
- 性别:
- 来自: 沈阳
最新评论
String propertiesPath = getClass().getClassLoader().getResource("").getFile();
propertiesPath = propertiesPath.substring(1, propertiesPath.length());
//windows下
InputStream in = new FileInputStream(new File(propertiesPath + "/resource.properties"));
//linux下
//InputStream in = new FileInputStream(new File("/opt/apache-tomcat-6.0.26/webapps/IMS/WEB-INF/classes/resource.properties"));
Properties prop = new Properties();
prop.load(in);
Enumeration e = prop.propertyNames();
while(e.hasMoreElements()){
String propKey = (String)e.nextElement();
String propValue = prop.getProperty(propKey);
propertiesMap.put(propKey, propValue);
}
in.close();
propertiesPath = propertiesPath.substring(1, propertiesPath.length());
//windows下
InputStream in = new FileInputStream(new File(propertiesPath + "/resource.properties"));
//linux下
//InputStream in = new FileInputStream(new File("/opt/apache-tomcat-6.0.26/webapps/IMS/WEB-INF/classes/resource.properties"));
Properties prop = new Properties();
prop.load(in);
Enumeration e = prop.propertyNames();
while(e.hasMoreElements()){
String propKey = (String)e.nextElement();
String propValue = prop.getProperty(propKey);
propertiesMap.put(propKey, propValue);
}
in.close();
发表评论
-
百度地图和ztree开发电子围栏功能
2016-09-29 09:27 4680jsp <%@ page language=" ... -
Oracle11g Enterprise Manager配置失败
2014-04-29 11:20 2532Win7先安装oracle 11g时,安装检测到系统的主 IP ... -
java弹窗导入导出文件
2014-03-24 11:42 1446package com.action.frame; impo ... -
jsp访问上级窗口元素
2014-04-29 11:22 417opener.document.getElementById( ... -
页面关闭IE触发事件方法
2013-09-30 09:56 551function window.onbeforeunload( ... -
页面右下角消息提示
2013-09-29 14:05 470<%@ page language="java ... -
oracle 日期列表
2013-09-29 12:52 482获取某个时间段之间的月份列表(示例返回2009-03到2010 ... -
倒计时
2013-09-24 10:01 320//提交 function doSubmit(){ ... -
oracle11G 最新驱动包
2013-09-24 10:00 677oracle11G 最新驱动包 解决与Spring冲突问题 ... -
获取第几天后的日期
2013-09-16 09:23 559Calendar cal = Calendar.getInst ... -
javamail
2013-09-16 09:15 532final SendMail sendmail = new S ... -
java根据年和周获取当前的日期时间段
2013-09-16 09:10 1248String[] dates = new String[7]; ... -
JSP判断日期间隔天数
2013-07-15 11:14 601var temp_field1 = $("#temp ... -
dtree不选中子节点处理
2013-05-17 10:35 1243//dtree.js 208行(chks[i].checked ... -
IE8下JS插入表格
2013-05-17 10:25 625//IE8下使用JS插入JSP表格 var tbl = do ... -
JSP选项卡显示
2013-05-17 10:22 1995<%@ page language="java ... -
JSP样式实例
2013-05-10 15:59 641<%@ page contentType="t ... -
Oracle表空间和用户创建赋权限
2013-05-10 15:54 635--RLDM CREATE TABLESPACE RLDM D ... -
hibernate oracle 主键递增
2013-05-10 15:47 463<?xml version="1.0" ... -
Spring配置文件,SSH, Oracl数据库
2013-05-10 15:45 709<?xml version="1.0" ...
相关推荐
quartz定时任务,在web项目中的使用方法;有例子和包直接拿到工程里陪陪就能用
BlazeDS 所需的所有配置文件均放在 /WEB-INF/flex/ 目录下。BlazeDS 将读取 services-config.xml 配置文件,该配置文件又引用了 remoting-config.xml、proxy-config.xml 和 messaging-config.xml 这 3 个配置文件,...
WEB-INF下的applicationContext.xml为Spring的配置文件,struts-config.xml为Struts的配置文件,file-upload.jsp为文件上传页面,file-list.jsp为文件列表页面。 本文后面的章节将从数据持久层->业务层->Web层的...
- 在Controller中使用@PreAuthorize等注解需要在spring-web配置文件中扫描security包下的类 6. 引用application.properties中的属性的方式:@ConfigurationProperties(prefix = "spring.mail") + @Component + ...
BlazeDS 所需的所有配置文件均放在 /WEB-INF/flex/ 目录下。BlazeDS 将读取 services-config.xml 配置文件,该配置文件又引用了 remoting-config.xml、proxy-config.xml 和 messaging-config.xml 这 3 个配置文件,...
3)最后使用tomcat服务器和Google浏览器进行web工程的部署和前端页面的调试,而后台设计思想是通过myeclipse编码调试,分别为dao层、damain层、exception层、formbean层、service层、utils工具层、controler层、ui层...
使用 Web 标准生成 ASP.NET 2.0 Web 站点 ASP.NET 2.0基于SQLSERVER 2005的aspnetdb.mdf部署 ASP.NET 2.0 Security FAQs Asp.net 2.0功能体验,细节之Web控件(一) 隐藏控件 Asp.net 2.0功能体验,总体设计思想 Asp...
2.lib 文件夹下放置:工程所需jar包 3.xml标签库为远程获取,路径:http://struts.apache.org/dtds/struts-2.5.dtd 可设置为本地【xml输入语法快捷提示】,就不用远程获取了:window-->preference-->输入...
找到WEB-INF\languages\jeecms_front下messages_zh_CN.properties配置文件,可以找到对应的首页面 tpl.index=首页(工程中的首页.html文件) 四 标签的配置流程 以cms_content_list为例,首先,每一个标签的声明...
第12章:编写自定义插件/12.2 注解说明/12.2.2 @Parameter:获取pom.xml文件中属性 第12章:编写自定义插件/12.3 编写插件实例:统计代码行数/12.3.1 插件项目原型 第12章:编写自定义插件/12.3 编写插件实例:统计...
1. 现阶段,你可以直接建立java 工程,但一般都是开发web项目,这个系列教程最后也是web的,所以一开始就建立web工程。 2. 将 mybatis-3.2.0-SNAPSHOT.jar,mysql-connector-java-5.1.22-bin.jar 拷贝到 web工程的...
4.3. 在一个版本控制的文件夹下资源管理器文件菜单中的快捷方式。 4.4. 版本控制下的一个目录的右键拖拽菜单 4.5. 认证对话框 4.6. 导入对话框 4.7. 检出对话框 4.8. 提交对话框 4.9. 提交对话框的拼写检查器 4.10. ...
发挥连接作用的就是这个/WEB-INF/web.xml文件了。贴内容。 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
14.5 配置web.xml文件 249 14.6 设置表现层 251 14.6.1 第一步 251 14.6.2 使用表现层bean 253 14.7 编写服务层代码 257 14.7.1 配置dao.xml文件 258 14.7.2 事务划界 259 14.8 编写DAO 260 14.8.1 SQLMap配置 260 ...
目录 译者序 前言 序言 读者 怎样阅读本书 本书约定 排版习惯 图标 本书组织结构 Subversion 1.1的新特性,svn客户端和linux下命令行。 目录 1. 简介 1.1. 什么是 TortoiseSVN? 1.2. TortoiseSVN 的历史 1.3. ...
获取帮助 iii. 3. 第一步 iv. 4. 使用Spring Boot v. 5. 了解Spring Boot特性 vi. 6. 迁移到生存环境 vii. 7. 高级主题 3. II. 开始 i. 8. Spring Boot介绍 ii. 9. 系统要求 i. 9.1. Servlet容器 iii. 10. Spring ...
• deploy,在整合或者发布环境下执行,将最终版本的包拷贝到远程的repository,使得其他的开发者或者工程可以共享。 • generate-sources,产生应用需要的任何额外的源代码,如xdoclet。 如果要执行项目编译,...
例如,假如用户已选定了公司可能购买的地块,现在想获取邻近地块的信息。这种情况下,利用该选项选择选中地块零距离范围内的所有地块即可。 中心在…里(Have their center in) 这种方法选择某一图层上的要素,...
│ 12.nginx的配置文件-通过端口号区分虚拟机.avi │ 13.通过域名配置虚拟机.avi │ 淘淘商城第二天笔记.docx │ ├─03.第三天 │ 01.课程回顾.avi │ 02.课程计划.avi │ 03.什么是反向代理.avi │ 04.nginx的...