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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.springframework</groupId>
  6. <artifactId>gs-rest-service-complete</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <parent>
  9. <groupId>org.springframework.bootstrap</groupId>
  10. <artifactId>spring-bootstrap-starters</artifactId>
  11. <version>0.5.0.BUILD-SNAPSHOT</version>
  12. </parent>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.bootstrap</groupId>
  16. <artifactId>spring-bootstrap-web-starter</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.fasterxml.jackson.core</groupId>
  20. <artifactId>jackson-databind</artifactId>
  21. </dependency>
  22. </dependencies>
  23. <properties>
  24. <start-class>hello.HelloWorldConfiguration</start-class>
  25. </properties>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-shade-plugin</artifactId>
  31. </plugin>
  32. </plugins>
  33. </build>
  34. <repositories>
  35. <repository>
  36. <id>spring-snapshots</id>
  37. <name>Spring Snapshots</name>
  38. <url>http://repo.springsource.org/snapshot</url>
  39. <snapshots>
  40. <enabled>true</enabled>
  41. </snapshots>
  42. </repository>
  43. <repository>
  44. <id>spring-milestones</id>
  45. <name>Spring Milestones</name>
  46. <url>http://repo.springsource.org/milestone</url>
  47. <snapshots>
  48. <enabled>false</enabled>
  49. </snapshots>
  50. </repository>
  51. </repositories>
  52. <pluginRepositories>
  53. <pluginRepository>
  54. <id>spring-snapshots</id>
  55. <name>Spring Snapshots</name>
  56. <url>http://repo.springsource.org/snapshot</url>
  57. <snapshots>
  58. <enabled>true</enabled>
  59. </snapshots>
  60. </pluginRepository>
  61. </pluginRepositories>
  62. </project>