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
Large language models (LLMs) have fundamentally transformed our digital landscape, powering everything from chatbots and…
As Large Language Models (LLMs) evolve into autonomous agents, understanding agentic workflow design patterns has…
In today's data-driven business landscape, organizations are constantly seeking ways to harness the power of…
In this blog, you would get to know the essential mathematical topics you need to…
This blog represents a list of questions you can ask when thinking like a product…
AI agents are autonomous systems combining three core components: a reasoning engine (powered by LLM),…
View Comments
Thank you! Very simple)