`
envy2002
  • 浏览: 150111 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

web src-->configure

 
阅读更多

package weibo4j.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class WeiboConfig {
	private static String filePath = "config.properties";
	public WeiboConfig(){}
	private static Properties props = new Properties(); 
	static{
		try {
			props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(filePath));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static String getValue(String key){
		return props.getProperty(key);
	}

    public static void updateProperties(String key,String value) {    
            props.setProperty(key, value); 
    } 
}
 
分享到:
评论

相关推荐

    逆向工程源码

    项目右击->build path->Configure build path->Libraries->Add External JARs.. 选择jar包所在的文件也就是上面的lib文件夹位置 9、更新项目,并在eclipse中添加tomcat(点击链接查看教程) 10、解决项目中的...

    connect-1.3.0-all-in-one

    # 右键项目,选择Configure --> Convert to Maven Project # 右键项目,选择run as maven build...-->Goals:eclipse:eclipse静静等待Build成功即可 # 右键项目,选择刷新(refresh) # 运行项目。右键项目,run ...

    nginx-1.9.11_fastdfs_module_master.zip linux 整合安装

    请在编译安装nginx-1.9.11前配置 ./configure --prefix=/opt/nginx-1.9.11 --add-module=/你的目录位置/fastdfs-nginx-module-master/src --with-http_ssl_module --with-stream 然后再make & make install ,最后...

    客户关系管理系统框架搭建(二)

    --3 配置本地化代理工程bean,这是spring整合hibernate的入口 --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> ...

    nginx安装教程

    cd /usr/local/src sudo wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz sudo tar -zxvf pcre-8.41.tar.gz cd pcre-8.41 sudo ./configure sudo make sudo make install # 安装zlib...

    FFMPEG For Android

    <android-src-root-dir>/external/ffmpeg-<version>.android Edit Android_configuration.mk and apply your customizations to the ./configure parameters, if needed. Initialize Android build environment: ...

    google api php client

    $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); foreach ($results as $item) { echo $item['volumeInfo']['title'], "<br /> \n"; } ``` ### Authentication with OAuth ### ...

    嵌入式boa服务器arm平台移植源码

    Boa Webserver http://www.boa.org/ 2.解压 tar -xf boa-0.94.13.tar.gz 3.安装词法解析器 sudo apt-get install bison sudo apt-get install flex 4.修改源码 4.1 src/compat.h vi src/compat.h +119 改...

    entlibcontrib2009-05src_sample

    You can configure connection strings in WEB.CONFIG/ APP.CONFIG through Microsoft Enterprise Library Configuration Tool. DAEE have many other features, including the following ones: 1. Enabling ...

    boa_src.zip

    "#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff" 修改为 "#define TIMEZONE_OFFSET(foo) foo->tm_gmtoff" 5. make 编译, 此时在src目录下生成了.o和中间文件和boa执行文件 6. arm-linux-gnueabi-strip boa 去掉...

    LAMP环境双机负载均衡2009.09.17修正.doc

    WEB配置 #安装apr和apr-util tar zxvf apr-1.3.8.tar.gz;cd apr-1.3.8; “./configure” \ “--prefix=/usr/local/apr-httpd” \ “$@” Tar zxvf apr-util-1.3.9.tar.gz;cd apr-util-1.3.9 “./configure” \ “--...

    springmybatis

    -- 返回list 的select 语句,注意 resultMap 的值是指向前面定义好的 --> <select id="selectUsers" parameterType="string" resultMap="resultListUser"> select * from user where userName like #{userName} ...

    word源码java-origin:起源

    word源码java origin 起源 一些项目介绍 ...origin-web/src/main/{java,resources} origin-web/src/test/{java,resources} mkdir -p origin-configure/src/main/{java,resources} origin-configure

    Nginx1.8.0安装简述

    2. 配置 Nginx:./configure --with-openssl=/usr/local/src/openssl-1.0.0 3. 编译 Nginx:make 4. 安装 Nginx:make install 四、软连接设置 在 32 位系统中,需要建立软连接以便 Nginx 正常工作: ln -s /usr/...

    InstantWebP2P:node-httpp HTTPP - 通过 UDP 运行 HTTP 并以 Peer 或 P2P 样式引入 Web

    V8 javascript 的事件 I/O。 构建: 先决条件(仅限 Unix): * GCC 4.2 or newer ... http://src.chromium.org/svn/trunk/deps/third_party/icu46 \ deps/v8/third_party/icu46 ./configure --with-icu-path=dep

    qtbrowserplugin-2.4_1-opensource.tar.gz

    for web browser. Notes: This module can not function if built as a DLL, it must be statically linked with the plugin. Hence, DLL building is not supported, and the -library option to ...

    arxiv-number-extraction

    运行aws configure并输入您从aws站点生成的访问令牌 运行aws s3 ls arxiv/src/ --request-payer requester以获取可用tar文件的列表 使用aws s3 cp arxiv/src/arXiv_src_9902_001.tar ./arXiv_src_9902_001.tar --...

    my_goahead-4.0.0-src:官网原始码添加

    嵌入此GoAhead 3.X 最受欢迎的小型嵌入式Web服务器。发牌有关详细信息,请参见LICENSE.md并阅读:建筑您可以使用Make或MakeMe进行构建。 MakeMe更快,更灵活。 要安装MakeMe,请从下载用make构建: make您可以传递...

    Qt5.0.2_WinXP_SP3_modified_files.zip

    I didn't find enough information on the web, so I figured it out myself how to successfully build the DLLs of QtBase 5.0.2 on Windows XP SP3 using msvc2005. Here's the summary on how I finally ...

    Clever Internet Suite (SRC) v9.1.0.0

    This property allows you to configure the used encryption and signature algorithms. The signature verification is disabled when retrieving the message header. HTTP client - the TLS1.2 option was ...

Global site tag (gtag.js) - Google Analytics