1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| package com.landtool.lanbase.common;
|
| import java.net.URI;
| import java.net.URISyntaxException;
|
| public class Test {
|
| public static void main(String[] args) {
| URI uri;
| try {
| uri = new URI("http://41.3.0.6/ybjz");
| System.out.println(uri);
| } catch (URISyntaxException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
| }
| }
|
|