Once installed, you would be asked to restart the Eclipse. Go ahead and restart the eclipse.
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.
Once the web app starts, access the web app in browser using URL such as http://localhost:8080/
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.
Artificial Intelligence (AI) agents have started becoming an integral part of our lives. Imagine asking…
In the ever-evolving landscape of agentic AI workflows and applications, understanding and leveraging design patterns…
In this blog, I aim to provide a comprehensive list of valuable resources for learning…
Have you ever wondered how systems determine whether to grant or deny access, and how…
What revolutionary technologies and industries will define the future of business in 2025? As we…
For data scientists and machine learning researchers, 2024 has been a landmark year in AI…
View Comments
Thank you! Very simple)