Registry / web-framework / spring-boot-starter-web

spring-boot-starter-web

JSON →
library4.1.0javamavenunverified

Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>4.1.0</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-BOOT-STARTE
S
spring-boot-starter-web
web-frameworkjavav4.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RestController
org.springframework.web.bind.annotation.RestController

Creates a simple REST controller with a GET endpoint.

import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.GetMapping; @RestController public class HelloController { @GetMapping("/hello") public String hello() { return "Hello, World!"; } }
Debug
Known issues
gotchaThis starter is deprecated in favor of spring-boot-starter-webmvc.
fix
Use spring-boot-starter-webmvc for new projects.
affects: >=4.0.0
Upgrade
Version history
4.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
spring-boot-starter-web — mvn dependency:get spring-boot-starter-web · libregistry