一、.properties文件的作用
Properties属性文件在JAVA应用程序中是经常可以看得见的,也是特别重要的一类文件。它用来配置应用程序的一些信息,不过这些信息一般都是比较少的数据,没有必要使用数据库文件来保存,而使用一般的文本文件来保存,如果是通过File直接保存的话,可能在存储和读取上都不是很方便,但如果保存为Properties文件就不一样了,属性文件都有键值对应的,在JAVA的包中,有提供专门的操作属性文件的类。这个类就是 java.uitl.Properties类,由于Properties类是一个集合类,所以,Properties会将属性以集合的方式读写。(配置文件有两种:XML和.properties文件)
在Java中,.properties文件的内容格式是"键-值"的格式,文本的注释信息可以用"#"来注释。
二、Java Properties类
Properties类继承自Hashtable,如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqsAAACqCAIAAAAFupEqAAALyElEQVR4nO3d3ZHiuhYGUIKajLrqVp1gJoeTBFmcCCaZvg/dQ4MtbW3/Y2ut6gcwsiybqdmfhTG3TwCgP7ejBwAAHEACAIAeSQAA0CMJAAB6JAEAQI8kAADoUSoB/Pvvv//888/WQwEAdiMBAECPJAAA6JEEAAA9kgAAoEcSAAD0SAIAgB5JAADQIwkAAHq0SQK43W6327vfbXA8yNuTo0YFAPu4+BzAjHIuAQDQAwlghVUA4HRWTgC1ifTx8sfT+/0evNosxs/Nio/H/cSdSwAA9GCP6wDGpX3e48zmgk3Hg8ysAgCXsd+VgLUT/doqU6cBiv1IAABQtFMCeCwZV+jHpwCZ9s3NSQAAkHHkpwCflQQQzxPUZheam44HmVkFAC5j1zmAZ0HjWvtaAsj0X1wyeCnoBAAupt87AgFAz9ZMAM6eAeAsLn5HIACgSAIAgB5JAADQIwkAAHokAQBAj/ZLAH9+/7p93Bd2AgCsYqME8Of3r9vtteB/Lbo9Lf5a8uv3nyk9AwAr2G4O4P7xWvC/E8BPwX80uJkbAICdbfopwEsIGCSA79fMAADAEba9DuDvzP8oAXzV/4Wn/k+TCCOSxc/hcSwAGNv3SsDvcnT/eC3/C+YDnjPGa2+XrXx/fv9K7dvVjwMAi6yaAH4u9pt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AAKBHEgAA9EgCAIAeSQAA0CMJAAB6JAEAQI/8JCsA9EgCAIAeSQAA0CMJAAB6JAEAQI8kAADokQQAAD2SAACgRxIAAPRIAgCAHkkAANCj/wPrmjr4XrmeHgAAAABJRU5ErkJggg==" alt="" />
它提供的主要方法:
- getProperty(String key):用指定的键在此属性列表中搜索属性。也就是通过key得到对应的value
- load(InputStream inStream):通过对指定文件进行装载来获得(键-值)对,以供getProperty()调用。
- setProperty(String key,String value):调用基类的put方法来设置键-值对
- store(OutPutStream out,String comments):将键-值对按照文件的格式写入到指定文件中
- clear():清除所有转载的键-值对
三、写.properties文件
默认情况下,空格可以作为Properties文件中Key和Value的分隔符,当我们需要在Key中使用空格的时候,可以使用反斜杠(\)对空格进行转移。注: 斜杠为(/),反斜杠为(\)。
尽量少使用等号和空格。一定要注意使用空格。在每行的末尾尽量不要使用空格。
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/userdate
username=root
password=root
如果在userdate后边加一个空格保存,程序运行时候就会提示userdate不存在
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvEAAAC8CAIAAAB+A2YtAAAgAElEQVR4nO2dW4wcx3nv++28BXk8D4YAJwiiF79Z69kGjvRAvRhBJAY4tiCRsiiS6kMGgQ3ahxQEULGxUrQyuSt3QEuWdilQcSKTXtIiKa7GYaKIlySyTsghzbtWbcmKliYtyiT3fpuZ7fPQPd11+aovM32bnv8PHxYz3dXVX31V0/XvqtpubQoAAAAAoKt4bfzCa+MX3njjDefr+++/b9u2lq9PAAAAAABxgaYBAAAAQBmApgEAAABAGYCmAQAAAEAZgKYBAAAAQBmApgEAAABAGYCmAQAAAEAZgKYBAAAAQBmApgEAAABAGYCmAQAAAEAZgKYBAAAAQBmApgEAAABAGYCmAQAAAEAZgKYBAAAAQBmgNc0bAAAAAABdBcZpAAAAAFAGoGkAAAAAUAagaQAAAABQBqBpAAAAAFAGoGkAAAAAUAagaQAAAABQBqBpAAAAAFAGoGkAAAAAUAag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ztkFJCMwJNcwZN8nEwjfSLdBqCMQNNkQVrraSzmnyBUXZdHJE0T1K+1pWncTMl7W9f3omga25s/IccpOi8FP44QfaGG+iziuYgyBWkaemJFwBMScTUN02trcvfd7jiNXbxq4uQW0RKdDC1uubOiwYp4hyojqWg1GKcBPQo0TRaktZ5GmByIMPfkXQlN9wJPLEEIVyr+OHkE9WOZum4Yuv/VFPtG1jH2et+6Cnuno+eexC6C3yGnr5omu/pCmkBRdtOdlUKe7GF7V9ZxpryBZ7GrRmjpAhoGlZXYQ7a+h2dIjNOwtDNOIwWssNUkS22xIbJekcnY3Fj/JN0pHK3Q6gETZACUGWiaLEhxPU3rBo795013q3y185NzKwqkm+hENY0onZhTEl4IN+AqTaM6xDJ1zTCoJcJC2WlNw3/h++EOS+Gdn5x+kDpO/2DxLOSkhVSz3gamYSjGL5jD5Jt+bwuVIdvSomsacdSBz170Rx4dKlw18QNXcpQEhUMnE1Wj1IDlSIpjan57liOJYRrQI0DTZEGq62mKT9DMT6zUud5rJlYKEJ34i0ByqKYuGALBYhrQK0DTZEFPa5q4V3x1NxMw1J46yZUCxCJe4POopjybZTTQGEHvAE2TBT2rafiFD5GPIZfBxs8pKRIrBUiTHKop12YJAJCBpsmCntU0AAAAQGZA02QBNA0AAACQNtA0WQBNAwAAAKRNUprm/wOjsXuV4VOENAAAAABJRU5ErkJggg==" alt="" />
四、java web 读取.properties文件
db.properties
url = "jdbc:mysql://localhost:3306/test"
username="root"
name="root"
第一种:使用ServletContext的getResourceAsStream方法:返回资源文件的读取字节流
public void test1() throws IOException{
InputStream in=this.getServletContext().getResourceAsStream("/WEB-INF/classes/db.properties");
Properties props=new Properties();
props.load(in);
String url=props.getProperty("url");
String username=props.getProperty("username");
String password=props.getProperty("password"); System.out.println(url);
System.out.println(username);
System.out.println(password);
}
this.getClass().getClassLoader().getResource 的详解:
- 调用对象的getClass()方法是获得对象当前的类类型
- 在类类型上调用getClassLoader()方法是得到当前类型的类加载器
- 最后调用了类加载器的getResourceAsStream()方法来加载资源。
第二种:使用ServletContext的getRealPath方法,获得文件的完整绝对路径path,再使用字节流读取path下的文件
public void test2() throws IOException{
String path =this.getServletContext().getRealPath("/WEB-INF/classes/db.properties");
FileInputStream in=new FileInputStream(path);
////相比第一种方法的好处是:除了可以获取数据,还可以获取资源文件的名称
String filename=path.substring(path.lastIndexOf("\\")+1);
System.out.println(filename);
Properties props=new Properties();
props.load(in);
String url=props.getProperty("url");
String username=props.getProperty("username");
String password=props.getProperty("password");
System.out.println(url);
System.out.println(username);
System.out.println(password);
}
第三种:类加载器:
/*
* 使用类路径的读取方式:
* / :斜杠标示classpath的根目录
* 在java项目下:classpath的根目录从bin开始
* 在web 项目下:classpath的根目录从WEB-INF/classes目录开始
*/
//读取db.properties文件
Properties props=new Properties();
InputStream in= JdbcUtil.class.getResourceAsStream("/db.properties");
props.load(in);
url=(String) props.get("url");
user=props.getProperty("user");
password=props.getProperty("password");
driverClass=props.getProperty("driverClass");
五、Java操作Properties类
Properties(配置文件类):主要用于生产配置文件与读取配置文件的信息。
- 要注意的细节:如果配置文件的信息一旦使用了中文,那么在使用store方法,生成配置文件的时候只能使用字符流解决,如果使用字节流生成配置文件,默认使用的是ISO8859-1码表进行编码存储,这时候会出现乱码
- 如果Properties中的内容发生了变化,一定要重新
//读取配置文件的信息
public static void readProperties() throws FileNotFoundException, IOException{
//创建Properties
Properties properties=new Properties();
//加载配置文件
properties.load(new FileReader("F:\\user.properties"));
Set<Entry<Object, Object>> entrys=properties.entrySet();
//遍历Properties
for(Entry<Object,Object> entry:entrys){
System.out.println("键:"+entry.getKey()+" 值:"+entry.getValue());
}
//更新配置文件
properties.setProperty("校长", "345");
properties.store(new FileWriter("F:\\user.properties"), "用户");
}
//保存配置文件的信息
public static void createProperties() throws FileNotFoundException, IOException{
//创建Properties
Properties properties=new Properties();
properties.setProperty("校长", "123456");
properties.setProperty("撒个", "123456");
properties.setProperty("个长", "123456");
//遍历Properties
Set<Entry<Object, Object>> entrys=properties.entrySet();
for(Entry<Object,Object> entry:entrys){
System.out.println("键:"+entry.getKey()+" 值:"+entry.getValue());
}
//保存Properties
properties.store(new FileWriter("F:\\user.properties"), "用户"); }
六、练兵场地
package cn.lyjs.other; import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
/*
* 软件使用超过三次,提示购买正版软件
*/
public class Demo2 {
public static void main(String[] args) throws IOException {
File file =new File("F:\\count.properties");
if(!file.exists()) file.createNewFile();
//创建Properties对象
Properties proterties=new Properties();
proterties.load(new FileInputStream(file)); int count=0;//记录访问的次数
String value=(String) proterties.get("count");
if(value!=null){
count=Integer.parseInt(value);
}
count++;
System.out.println("你已经访问了"+count+"次");
if(count>3){
System.out.println("你已经访问三次,请购买正版");
}
//更改访问的次数
proterties.setProperty("count", count+"");
proterties.store(new FileOutputStream("F:\\count.properties"), "count的记录");
}
}
七、常见错误
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxUAAAFZCAIAAABhepVjAAAgAElEQVR4nO29f5Ad1Znf3VX7x1u1yRLvm+wmm1DerA3WaDqLw1veKmWzhd9YCjYYzCDRS94Xwb7x2olmjcHGlsQPiXSmZCqvFwm8xnbQ8EOsF0b0yjYOs3a0i5DAwbAwkhA0FoORkEGMkNCv0Q8kzb13On/0r+ec85y+3bf73u6+8/3UU6p7z5w+5znPObfPt89pdRseAAAAAABox/U33vE326ee/sXRXe95RtnOAAAAAADUAOgnAAAAAIBsQD8BAAAAAGQD+gkAAAAAIBvQTwAAAAAA2YB+AgAAAADIBvQTAAAAAEA2oJ8AAAAAALIB/QQAAAAAkA3oJwAAAACAbEA/AQAAAABkA/oJAAAAACAb0E8AAAAAANmAfgIAAAAAyIagnzYAAAAAAAANvH4qUccBAAAAANQF6CcAAAAAgGxAPwEAAAAAZAP6CQAAAAAgG9BPAAAAAADZgH4CAAAAAMgG9BMAAAAAQDagnwAAAAAAsgH9BAAAAACQDegnAAAAAIBsQD+B9pT9uHwAAACg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W/Npj3dmPsKAfqpZJoPPJC8W9fV//O8ZtOe42e8gycDi/ST/3X/nm1PPzDw9AMD+/dsi/L89j80os8wGKytHfrl1Af/KWlHb/q7D5TuJAxWQTt+BvoJaJh9992Es2pzdLTbDqzZtOfYGe+9E4FF+sn/+vQDA96hb3mHvvX0AwNRnvdOeO+9aM8zzK+/6AmJnZtzpWGNFlNUIW505E/BMem55fD/n/6GUb7/lbfp7yT975BDk++W7iEMVjU7Bv0EdOie8zQzNNSbt6ys2bTn6Afe1InAIv3kf6X6KcrzO79hTL1of8wwv/ZifGA+c640rPuLKSoy92sDhiE5+YhlDNjb2rsRffALCbjykcQaC46JULVRfHy67T+MsYM7Js9cxT+dZPqb95buHgxWNTv6QS3108mTJ0+fPn3y5Enopy7CvtJuZmioZ0/YW7Npz5HT3v7jgUX6yf/61P3zvLfv8t6+66n750V5umDOFYb13wsu071lwLhiyDIG7KejxA3iV60b0Qf3lgHzlhe8/ce9/S/YHzPCzx37s6F7+XvjFW//4h8ZXfazj+yd6TOfYyTUuYWLyvcNBquYHTldP/104sSJ06dP//7v/z6VUNBPBTP7+uvslWgv3++7ZtOew6e8d455z7769k3f3XzTdzcPfP67N3138zvHvHeOef/zOxfO7l45u3vl//zOhX7KO8e88z9kRJ8LMucKw/pewWW6twwYVzzs3jJgfOxWN0h82DIG7C3t3Yg+uLcMmLc8H2T43hApqkN/upe/N17BCrADE5PsD//AS6+X7hsMVik7fKpm+skXTx/+8If/4A/+4LrrroskFPRTwTQff5w5ja5Z00sf1mzac+ikt++o9+yrb19tO7542nfU8238no/O7rxxdueN4/d8NErcd9Tb93P7QsP6Tvw54LMPe/uOul8ZMC5c6fo5/26laQzYf8dko+Z8Vlua/1fzKystPzEqed9R57NBRvMrK62gltjcrwwYn304KDAo6mGLOENr9D9HbkQf3K8MmF/5eVDmd66Kao+qNgy+HMlhkj/wM04Jy/Qddj4b5An9J436u5VmVN13rjKMq5x9fFGJhcexFb2iMWEbqO0I73d/0xA7FNbGjt25h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FRmoJ9AN+5/gn5KCfRTV50JKGtutmwpu2ubpm0ne1PNubkr+okWij7qMqFCEsJDvtTuVFQBitJP/xsOXcbl5gVlkgAAAABJRU5ErkJggg==" alt="" />
出现这种错误,有可能文件地址配置错误
Java的Properties类和读取.properties文件的更多相关文章
-
Properties类与读取properties文件
Properties类 在Java中,其配置文件常为.properties文件,格式为文本文件,文件的内容的格式是“键=值”的格式,文本注释信息可以用"#"来注释. 这个类的几个常 ...
-
java中Properties类及读取properties中属性值
本文为博主原创,未经允许不得转载: 在项目的应用中,经常将一些配置放入properties文件中,在代码应用中读取properties文件,就需要专门的类Properties类,通过这个类可以进行读取 ...
-
通过java.util.Properties类来读取.properties文件中key对应的value
转:http://www.cnblogs.com/panjun-Donet/archive/2009/07/17/1525597.html
-
(转)java 从jar包中读取资源文件
(转)java 从jar包中读取资源文件 博客分类: java 源自:http://blog.csdn.net/b_h_l/article/details/7767829 在代码中读取一些资源文件 ...
-
如何在java类中读取Properties配置文件
在com.example包下有一个test.properties文件和测试类PropertyReadTest.java. test.properties 文件内容: author=zeige tea ...
-
Java实现动态加载读取properties文件
问题: 当我们使用如下语句加载.properties时: ClassLoader classLoader = this.getClass().getClassLoader(); Properties ...
-
Java在Web项目中读取properties文件
import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import ...
-
GeoJson的生成与解析,JSON解析,Java读写geojson,geotools读取shp文件,Geotools中Geometry对象与GeoJson的相互转换
GeoJson的生成与解析 一.wkt格式的geometry转成json格式 二.json格式转wkt格式 三.json格式的数据进行解析 四.Java读写geojson 五.geotools读取sh ...
-
java 从jar包中读取资源文件
在代码中读取一些资源文件(比如图片,音乐,文本等等),在集成环境(Eclipse)中运行的时候没有问题.但当打包成一个可执行的jar包(将资源文件一并打包)以后,这些资源文件找不到,如下代码: Jav ...
随机推荐
-
Linux下Oracle重启问题
一.切换成oracle用户 $ su - oracle 注意:不要写成“su oracle ”不然是没办法使用下面的命令的. 如下所示:将会报:command not found的错误 二.使用命令 ...
-
iOS7中的ViewController切换
转自:https://onevcat.com/2013/10/vc-transition-in-ios7/ iOS 7 SDK之前的VC切换解决方案 在深入iOS 7的VC切换效果的新API实现之前, ...
-
Sqoop的使用(Mysql To HBase)
最近需要将mysql的数据整合到HBase中,原本使用MapReduce,自己制作job将mysql的数据导入, 查阅资料过程中,发现了开源工具sqoop(关系性数据库与HDFS,HBASE,HIVE ...
- kettle Java Filter(表达式过滤)
-
Django学习(一) Django安装配置
上一节介绍了如何搭建Python的开发环境,这次介绍一下如何搭建Django的开发环境. 第一.下载Django Django跟Python的版本对应 Django version Python ve ...
-
u-boot移植(四)---修改前工作:代码流程分析3---代码重定位
一.重定位 1.以前版本的重定位 2.新版本 我们的程序不只涉及一个变量和函数,我们若想访问程序里面的地址,则必须使用SDRAM处的新地址,即我们的程序里面的变量和函数必须修改地址.我们要修改地址,则 ...
-
HAL驱动的串口编程陷阱
http://bbs.elecfans.com/jishu_464356_1_1.html 手上有块NUCLEO STM32L053x板子,用来做串口实验,看了下ST的最新库HAL驱动,于是想用HAL ...
-
大家来找茬:富连网今天中午抢购二手iPhone时网站无法访问的问题
前几天在新闻区看到富士康卖二手iPhone的新闻,今天又看到说今天中午12点开抢.一大早就发现富连网无法访问了.前几天刚看到新闻的时候注册了个账号进去看了看,发现页面加载速度非常慢,今天中午基本无法打 ...
-
@Mock与@InjectMocks的区别
@Mock: 创建一个Mock. @InjectMocks: 创建一个实例,简单的说是这个Mock可以调用真实代码的方法,其余用@Mock(或@Spy)注解创建的mock将被注入到用该实例中. 注意: ...
-
collection.toArray(new String[0])中new String[0]的作用
new string[0]的作用 比如:String[] result = set.toArray(new String[0]); Collection的公有方法中,toArray()是比较重要的一个 ...