Spring Boot is the standard way to build web services and REST APIs in Java. This workspace ships a runnable Maven project with a sample REST endpoint and a static page, so the app starts on a port and opens in a built-in browser preview as soon as it boots.
The project starts with a REST controller and a static page wired up. Run mvn spring-boot:run and the app comes up on port 8080 with a browser preview.
The full cloud editor with an integrated terminal, the Java extensions and a debug config in the .vscode folder.
Dependencies are declared in pom.xml using Spring Boot starters. Maven resolves them on the first run, and you add libraries by editing the file.
Boots in about a minute on a 2 vCPU machine, with the JDK in place so you're a single command away from a running server.
Spring Boot is a Java framework that takes the Spring ecosystem and removes most of the configuration you'd otherwise write by hand. It bundles an embedded web server and sensible defaults, so a single main method gives you a running web application. It's a common backbone for REST APIs and microservices.
This workspace is a Maven project bootstrapped from Spring Initializr. It includes the web starter, a sample REST controller and a small front-end page, which means you have a working request-and-response loop to build on from the start.
The entry point is a Main class annotated with @SpringBootApplication. There's a SampleController mapped under /api that returns JSON from a /hello endpoint, plus a static index.html that fetches that endpoint and shows the response. The app's port is set in application.properties and defaults to 8080.
Dependencies live in pom.xml as Spring Boot starters, including spring-boot-starter-web. The file also has commented-out blocks for MongoDB and MySQL, so wiring up a database is mostly a matter of uncommenting and adding your connection details.
Open the terminal and run mvn spring-boot:run. Maven resolves the dependencies, compiles the project and starts the embedded server on port 8080. Studio opens the app in a built-in browser preview, where you can load the page and hit the sample endpoint.
Give it a minute on the first run while the project loads as a Java project and Maven downloads what it needs. To debug, use the launch config in the .vscode folder to set breakpoints and step through your controllers.
REST APIs, backend services, microservices, or the server side of a full-stack app. The sample controller and static page give you both halves of a request, so you can extend it into real endpoints, add a database from the commented starters in pom.xml, and grow it into a proper service.
Open the terminal and run mvn spring-boot:run. Maven builds the project and starts the embedded server on port 8080, and Studio opens it in a built-in browser preview. The first run takes a little longer while dependencies download.
Port 8080 by default. That's set in src/main/resources/application.properties and can be overridden with the SERVER_PORT environment variable.
It's a Maven project with a pom.xml. The README also includes commented Gradle commands if you'd rather convert it, but the template runs with Maven out of the box.
Yes. The pom.xml ships with commented-out starter blocks for MongoDB and MySQL, and application.properties has matching commented connection settings. Uncomment the ones you need and fill in your credentials.
Yes. The .vscode folder includes a Java debug config. Set breakpoints in your controllers or services and launch from the Run and Debug panel to step through requests.
Spring Boot runs on a paid Studio plan. Templates that are free to launch are marked as such, and you can upgrade from the pricing page to use this one.