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

build.gradle 517B

123456789101112131415161718192021
  1. apply plugin: 'java'
  2. apply plugin: 'eclipse-wtp'
  3. apply plugin: 'idea'
  4. apply plugin: 'application'
  5. mainClassName = "hello.Main"
  6. repositories { mavenCentral() }
  7. dependencies {
  8. compile "org.springframework:spring-webmvc:3.2.2.RELEASE"
  9. compile "com.fasterxml.jackson.core:jackson-databind:2.1.4"
  10. compile "org.apache.tomcat:tomcat-catalina:7.0.39"
  11. compile "org.apache.tomcat.embed:tomcat-embed-core:7.0.39"
  12. compile "org.apache.tomcat:tomcat-jasper:7.0.39"
  13. }
  14. task wrapper(type: Wrapper) {
  15. gradleVersion = '1.5'
  16. }