{"id":54097,"library":"spring-web","title":"Spring Web","description":"Provides web-oriented integration features for the Spring Framework, including HTTP client and server support.","status":"active","version":"7.0.8","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-framework","tags":["spring","web","http","rest"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework</groupId>\n  <artifactId>spring-web</artifactId>\n  <version>7.0.8</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework:spring-web:7.0.8'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"RestTemplate","correct":"org.springframework.web.client.RestTemplate"}],"quickstart":{"code":"import org.springframework.web.client.RestTemplate;\n\npublic class Example {\n    public static void main(String[] args) {\n        RestTemplate restTemplate = new RestTemplate();\n        String result = restTemplate.getForObject(\"https://api.example.com/data\", String.class);\n        System.out.println(result);\n    }\n}","lang":"java","description":"Demonstrates using RestTemplate to make a GET request."},"warnings":[{"fix":"Consider using WebClient from spring-webflux for reactive/non-blocking HTTP calls.","message":"RestTemplate is deprecated in favor of WebClient in Spring Web 5.0+.","severity":"gotcha","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'client':15 'featur':8 'framework':12 'http':14,21 'includ':13 'integr':7 'orient':6 'provid':3 'rest':22 'server':17 'spring':1,11,19 'support':18 'web':2,5,20 'web-ori':4","created_at":"2026-06-15T08:33:52.086503+00:00","updated_at":"2026-06-15T08:33:52.086503+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/spring-projects/spring-framework","github":"https://github.com/spring-projects/spring-framework","docs":"https://appdoc.app/artifact/org.springframework/spring-web/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}