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
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),…
Artificial Intelligence (AI) has evolved significantly, from its early days of symbolic reasoning to the…
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…
View Comments
Thank you! Very simple)