Download Spring STS from Eclipse Marketplace
Once installed, you would be asked to restart the Eclipse. Go ahead and restart the eclipse.
Spring Starter Project Creation Dialog Box
Spring Starter Project Creation Dialog Box – Configuration
Click Finish. This would create the project whose source code and config files/libraries structure would look following. Note the DemoApplication.java file which gets created by default.
Spring Starter Project Source Code Structure
Spring Starter Project Run as Spring Boot App
Once the web app starts, access the web app in browser using URL such as http://localhost:8080/
Access Spring Boot App From Browser
package com.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller @SpringBootApplication public class DemoApplication { @RequestMapping("/") @ResponseBody String home() { return "Hello World. How are you?"; } public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } }
The same code could be found on the Spring Boot homepage. Relaunch the web app and see the changes like following by access the http://localhost:8080 in the browser.
Spring Starter Project Run as Spring Boot App – Hello World
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Hey there! As I venture into building agentic MEAN apps with LangChain.js, I wanted to…
Software-as-a-Service (SaaS) providers have long relied on traditional chatbot solutions like AWS Lex and Google…
Retrieval-Augmented Generation (RAG) is an innovative generative AI method that combines retrieval-based search with large…
The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…
Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…
View Comments
Thank you! Very simple)