{"id":72991,"date":"2018-01-30T13:01:08","date_gmt":"2018-01-30T11:01:08","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=72991"},"modified":"2018-01-30T10:17:01","modified_gmt":"2018-01-30T08:17:01","slug":"7-reasons-use-spring-develop-restful-web-services-java","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html","title":{"rendered":"7 Reasons to Use Spring to develop RESTful Web Services in Java"},"content":{"rendered":"<p>REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS, Restlet, Jersey, RESTEasy, Apache CFX etc, but I encourage Java developers to use Spring framework to develop RESTful web services. But, some of you might ask,\u00a0<i>why use Spring Framework to develop RESTful web services in Java?<\/i> What is the advantage and why it&#8217;s better than other frameworks and libraries available out there? Well, the most important reason I think to use Spring for developing RESTful web service is that you can use your\u00a0<a href=\"http:\/\/javarevisited.blogspot.sg\/2017\/06\/how-spring-mvc-framework-works-web-flow.html\" target=\"_blank\" rel=\"noopener\">Spring MVC<\/a> experience to develop RESTful web services.<\/p>\n<p>This is one of the biggest advantage i.e. leveraging your years of experience on Spring MVC to expose your application as REST APIs. Another reason is that\u00a0<i>Spring has excellent support for developing RESTful web services<\/i>.<\/p>\n<p>In last a couple of versions, starting from Spring version 3.0, it has provided a lot of enhancements to Spring MVC to provide first-class REST support. It has provided dedicated annotations e.g. <code>@RestController<\/code> and <code>@ResponseStatus<\/code> to make the development of RESTful resources even easier in Spring 4.0.<\/p>\n<p>It&#8217;s also not only help you to create\u00a0<a href=\"http:\/\/www.java67.com\/2017\/06\/top-10-rest-api-and-restful-web-services-book.html\" target=\"_blank\" rel=\"noopener\">RESTful web services<\/a> but also provides classes to consume REST resources e.g. you can use <code>RestTemplate <\/code>class to consume RESTful resources.<\/p>\n<p>There are many more utility classes and annotations which makes the development of RESTful web services in Spring easier and seamless and I&#8217;ll share a couple of them in this article to prove my point that using Spring to develop RESTful Web service is the right decision.<\/p>\n<h2>How Spring Supports RESTful Web Services?<\/h2>\n<p>As I told you in the first paragraph that we can use Spring MVC to create and consume RESTful web services. Now, let&#8217;s see those supports in a little bit more details so that you can make the best use of them and quickly develop the RESTful services you always wanted to.<\/p>\n<p><b>1.<\/b> In Spring MVC, a controller can handle requests for all HTTP methods, which is a backbone of RESTful web services. For example, you can handle GET method to perform read operation, POST method to create resources, PUT method to update resources, and DELETE method to remove resources from the server. From Spring 3.2 onwards, you can also handle PATCH requests.<br \/>\n<b>2.<\/b> In case of REST, the representation of data is very important and that&#8217;s why Spring MVC allows you to bypass View-based rendering altogether by using the <code>@ResponseBody<\/code> annotation and various HttpMessgeConverter implementations.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>By using this two you can directly send a response to client e.g. the resource clients wants and also in the format they want. I&#8217;ll write more about <code>@ResponseBody<\/code> annotations and <code>HttpMessageConverter <\/code>in this blog in coming articles.<\/p>\n<p><a href=\"https:\/\/courses.baeldung.com\/p\/rest-with-spring-the-certification-class?affcode=22136_bkwjs9xa\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-72999\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/01\/REST-API-Security-using-OAuth-1.png\" alt=\"\" width=\"400\" height=\"344\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/01\/REST-API-Security-using-OAuth-1.png 400w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/01\/REST-API-Security-using-OAuth-1-300x258.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>3. The Spring 4.0 release added a dedicated annotation\u00a0<b><code>@RestController<\/code><\/b> to make the development of RESTful web services even easier.<\/p>\n<p>If you annotate your controller class using <code>@RestController<\/code> instead of <code>@Controller<\/code> then Spring applied message conversations to all handler methods in the controller.<\/p>\n<p>This means you don&#8217;t need to annotate each method with the\u00a0<b><code>@ResponseBody<\/code><\/b> annotation. This also makes your code much cleaner. You can read more about it on my post\u00a0<a href=\"http:\/\/javarevisited.blogspot.sg\/2017\/08\/difference-between-restcontroller-and-controller-annotations-spring-mvc-rest.html\" target=\"_blank\" rel=\"noopener\">difference between @Conroller and @RestController in Spring<\/a>.<\/p>\n<p><b>4. <\/b>One of the main difference between REST web services and a normal web application is that REST pass resource identifier data in URI itself e.g. \/messages\/101 while web application normally uses a query parameter e.g. \/messages?Id=101.<\/p>\n<p>If you remember, we use <code>@RequestParam<\/code> to get the value of those query parameter but not to worry, Spring MVC also provides a <code>@PathVariable<\/code> annotation which can extract data from URL. It allows the controller to handle requests for parameterized URLs.<\/p>\n<p>You can learn more about\u00a0<b><code>@PathVariable<\/code><\/b> in my post\u00a0<a href=\"https:\/\/www.javacodegeeks.com\/2017\/10\/differences-requestparam-pathvariable-annotations-spring-mvc.html\" target=\"_blank\" rel=\"noopener\">difference between <code>@RequestParam<\/code> and <code>@PathVaraible<\/code> in Spring<\/a>.<\/p>\n<p><b>5. <\/b>Another key aspect of RESTful web services is Representation e.g. the same resource can be represented in different formats e.g. JSON, XML, HTML etc. Thankfully Spring provides several view implementations and views resolvers to render data as JSON, XML, and HTML.<\/p>\n<p>For example, <code>ContentNegotiatingViewResolver <\/code>can look at the file extension of requests or Accept header to find out the correct representation of a resource for the client.<\/p>\n<p><b>6. <\/b>Similar to\u00a0<b>@ResponseBody<\/b> annotation, which is used for converting the response to the format client wants (by using <code>HttpMessageConverts<\/code>), Spring MVC also provides\u00a0<b><code>@RequestBody<\/code><\/b> annotation, which uses HTtpMethodConverter implementations to convert inbound HTTP data into Java objects passed into a controller&#8217;s handler method.<\/p>\n<p><b>7. <\/b>Spring Framework also provides a Template class, <code>RestTemplate<\/code>, similar to <code>JdbcTemplate<\/code>, and <code>JmsTemplate<\/code>, which can consume REST resources. You can use this class to test your RESTful web service or develop REST clients.<\/p>\n<p>I have already talked about this class in my earlier blog posts and you can see this\u00a0<a href=\"http:\/\/javarevisited.blogspot.sg\/2017\/02\/how-to-consume-json-from-restful-web-services-Spring-RESTTemplate-Example.html#axzz55X3RpiV7\" target=\"_blank\" rel=\"noopener\">tutorial<\/a> for a live example of using RestTemplate to consume JSON from a RESTful web service in Java.<\/p>\n<p>These were some of the\u00a0<b>important features of Spring MVC framework<\/b> which assist in developing RESTful web services. As I told the most important reason for me to choose Spring for developing RESTful resources is that I can use my existing knowledge of framework, which means no steep learning curve. If you look at from high level, developing RESTful services is not very different from developing a web application.<\/p>\n<p>The fundamental difference is that in case of former, we mostly deal with human users where in case of REST, you have to deal with non-human users mostly rich JavaScript clients and mobile applications. This key difference then derives other differences e.g. representing data in JSON or XML instead of HTML which is suitable for human users but not for non-human systems.<br \/>\nOther <b>Spring <\/b> and <b>REST Resources<\/b> you may like:<\/p>\n<p><a href=\"http:\/\/javarevisited.blogspot.sg\/2017\/02\/difference-between-jax-rs-restlet-jersey-apache-cfx-RESTEasy.html\" target=\"_blank\" rel=\"noopener\">Difference between Restlet, Jersey, and RESTEasy in Java?<\/a><\/p>\n<p><a href=\"http:\/\/www.java67.com\/2017\/06\/what-is-use-of-dispatcherservlet-in-spring-mvc.html\" target=\"_blank\" rel=\"noopener\">What is the use of DispatcherServlet in Spring MVC?<\/a><\/p>\n<p><a href=\"http:\/\/javarevisited.blogspot.sg\/2017\/05\/how-to-enable-spring-security-in-java-web-application.html\" target=\"_blank\" rel=\"noopener\">How to enable Spring security in a Java web application?<\/a><\/p>\n<p>Thanks for reading this article, if you like these reasons for developing RESTful web services using Spring then please share with your friends and colleagues. If you have any questions or feedback, then please drop a note.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Javin Paul, partner at our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"http:\/\/javarevisited.blogspot.com\/2018\/01\/7-reasons-for-using-spring-to-develop-RESTful-web-service.html\" target=\"_blank\" rel=\"noopener\">7 Reasons to Use Spring to develop RESTful Web Services in Java<\/a><\/p>\n<p>Opinions expressed by Java Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS, Restlet, Jersey, RESTEasy, Apache CFX etc, but I encourage Java developers to use Spring framework to develop RESTful web services. But, some of you might ask,\u00a0why use Spring Framework &hellip;<\/p>\n","protected":false},"author":251,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30],"class_list":["post-72991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-spring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-30T11:01:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Javin Paul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Javin Paul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html\"},\"author\":{\"name\":\"Javin Paul\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40\"},\"headline\":\"7 Reasons to Use Spring to develop RESTful Web Services in Java\",\"datePublished\":\"2018-01-30T11:01:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html\"},\"wordCount\":1053,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"Spring\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html\",\"name\":\"7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2018-01-30T11:01:08+00:00\",\"description\":\"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/7-reasons-use-spring-develop-restful-web-services-java.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"7 Reasons to Use Spring to develop RESTful Web Services in Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40\",\"name\":\"Javin Paul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"caption\":\"Javin Paul\"},\"description\":\"I have been working in Java, FIX Tutorial and Tibco RV messaging technology from past 7 years. I am interested in writing and meeting people, reading and learning about new subjects.\",\"sameAs\":[\"http:\\\/\\\/javarevisited.blogspot.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/javin-paul\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks","description":"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html","og_locale":"en_US","og_type":"article","og_title":"7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks","og_description":"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,","og_url":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-01-30T11:01:08+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Javin Paul","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Javin Paul","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html"},"author":{"name":"Javin Paul","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40"},"headline":"7 Reasons to Use Spring to develop RESTful Web Services in Java","datePublished":"2018-01-30T11:01:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html"},"wordCount":1053,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["Spring"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html","url":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html","name":"7 Reasons to Use Spring to develop RESTful Web Services in Java - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2018-01-30T11:01:08+00:00","description":"REST has now become a standard way to develop web services and when it comes to Java, there are many frameworks and library available e.g. JAX-RS,","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/7-reasons-use-spring-develop-restful-web-services-java.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"7 Reasons to Use Spring to develop RESTful Web Services in Java"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40","name":"Javin Paul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","caption":"Javin Paul"},"description":"I have been working in Java, FIX Tutorial and Tibco RV messaging technology from past 7 years. I am interested in writing and meeting people, reading and learning about new subjects.","sameAs":["http:\/\/javarevisited.blogspot.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/javin-paul"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/72991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/251"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=72991"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/72991\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=72991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=72991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=72991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}