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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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</artifactId>
  7. <version>0.1.0</version>
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>1.1.1.RELEASE</version>
  12. </parent>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-web</artifactId>
  17. </dependency>
  18. </dependencies>
  19. <properties>
  20. <start-class>hello.Application</start-class>
  21. </properties>
  22. <build>
  23. <plugins>
  24. <plugin>
  25. <artifactId>maven-compiler-plugin</artifactId>
  26. <version>2.3.2</version>
  27. </plugin>
  28. <plugin>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-maven-plugin</artifactId>
  31. </plugin>
  32. </plugins>
  33. </build>
  34. <repositories>
  35. <repository>
  36. <id>spring-releases</id>
  37. <url>http://repo.spring.io/libs-release</url>
  38. </repository>
  39. </repositories>
  40. <pluginRepositories>
  41. <pluginRepository>
  42. <id>spring-releases</id>
  43. <url>http://repo.spring.io/libs-release</url>
  44. </pluginRepository>
  45. </pluginRepositories>
  46. </project>