Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring. :: spring-boot http://spring.io/guides/gs/rest-service/

pom.xml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.springframework</groupId>
  5. <artifactId>gs-rest-service</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <dependencies>
  8. <dependency>
  9. <groupId>org.springframework</groupId>
  10. <artifactId>spring-webmvc</artifactId>
  11. <version>3.2.2.RELEASE</version>
  12. </dependency>
  13. <dependency>
  14. <groupId>com.fasterxml.jackson.core</groupId>
  15. <artifactId>jackson-core</artifactId>
  16. <version>2.1.4</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.apache.tomcat</groupId>
  20. <artifactId>tomcat-catalina</artifactId>
  21. <version>7.0.39</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.apache.tomcat.embed</groupId>
  25. <artifactId>tomcat-embed-core</artifactId>
  26. <version>7.0.39</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.tomcat</groupId>
  30. <artifactId>tomcat-jasper</artifactId>
  31. <version>7.0.39</version>
  32. </dependency>
  33. </dependencies>
  34. <properties>
  35. <!-- use UTF-8 for everything -->
  36. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  37. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  38. </properties>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-compiler-plugin</artifactId>
  44. <version>2.3.2</version>
  45. <!-- compile for Java 1.6 -->
  46. <configuration>
  47. <source>1.6</source>
  48. <target>1.6</target>
  49. <encoding>UTF-8</encoding>
  50. </configuration>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. </project>