1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+
7+ <groupId >com.xncoding</groupId >
8+ <artifactId >springboot-resttemplate</artifactId >
9+ <version >1.0.0-SNAPSHOT</version >
10+ <packaging >jar</packaging >
11+
12+ <name >springboot-resttemplate</name >
13+ <description >使用RestTemplate访问RESTful API接口</description >
14+
15+ <parent >
16+ <groupId >org.springframework.boot</groupId >
17+ <artifactId >spring-boot-starter-parent</artifactId >
18+ <version >1.5.9.RELEASE</version >
19+ <relativePath />
20+ </parent >
21+
22+ <properties >
23+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
24+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
25+ <java .version>1.8</java .version>
26+ </properties >
27+
28+ <dependencies >
29+ <dependency >
30+ <groupId >org.springframework.boot</groupId >
31+ <artifactId >spring-boot-starter-web</artifactId >
32+ <exclusions >
33+ <exclusion >
34+ <groupId >org.springframework.boot</groupId >
35+ <artifactId >spring-boot-starter-tomcat</artifactId >
36+ </exclusion >
37+ </exclusions >
38+ </dependency >
39+ <dependency >
40+ <groupId >org.springframework.boot</groupId >
41+ <artifactId >spring-boot-starter-jetty</artifactId >
42+ </dependency >
43+ <dependency >
44+ <groupId >org.apache.httpcomponents</groupId >
45+ <artifactId >httpclient</artifactId >
46+ <version >4.3.6</version >
47+ </dependency >
48+ <dependency >
49+ <groupId >org.springframework.boot</groupId >
50+ <artifactId >spring-boot-starter-test</artifactId >
51+ <scope >test</scope >
52+ </dependency >
53+ <dependency >
54+ <groupId >org.hamcrest</groupId >
55+ <artifactId >hamcrest-core</artifactId >
56+ <version >1.3</version >
57+ <scope >test</scope >
58+ </dependency >
59+
60+ </dependencies >
61+
62+ <build >
63+ <plugins >
64+ <plugin >
65+ <groupId >org.apache.maven.plugins</groupId >
66+ <artifactId >maven-compiler-plugin</artifactId >
67+ <version >3.6.1</version >
68+ <configuration >
69+ <!-- <proc>none</proc>-->
70+ <source >1.8</source >
71+ <target >1.8</target >
72+ </configuration >
73+ </plugin >
74+ <plugin >
75+ <groupId >org.apache.maven.plugins</groupId >
76+ <artifactId >maven-surefire-plugin</artifactId >
77+ <version >2.20</version >
78+ <configuration >
79+ <skip >true</skip >
80+ </configuration >
81+ </plugin >
82+ <plugin >
83+ <groupId >org.springframework.boot</groupId >
84+ <artifactId >spring-boot-maven-plugin</artifactId >
85+ <executions >
86+ </executions >
87+ </plugin >
88+ </plugins >
89+
90+ <resources >
91+ <resource >
92+ <directory >src/main/resources</directory >
93+ </resource >
94+ <resource >
95+ <directory >src/main/java</directory >
96+ <includes >
97+ <include >**/*.xml</include >
98+ </includes >
99+ </resource >
100+ </resources >
101+ </build >
102+
103+ </project >
0 commit comments