?
1
InputStream?inputStream?
=
?
this
.getClass().getClassLoader().getResourceAsStream(
"
ipConfig.properties
"
);????
2
??Properties?p?
=
?
new
?Properties();????
3
??
try
?
{????
4
???p.load(inputStream);????
5
??}
?
catch
?(IOException?e1)?
{????
6
???e1.printStackTrace();????
7
??}
????
8
System.out.println(
"
ip:
"
+
p.getProperty(
"
ip
"
)
+
"
,port:
"
+
p.getProperty(
"
port
"
));??

2

3



4

5



6

7

8
