{"id":121799,"date":"2023-12-13T11:39:58","date_gmt":"2023-12-13T09:39:58","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=121799"},"modified":"2023-12-13T11:40:01","modified_gmt":"2023-12-13T09:40:01","slug":"spring-boot-hello-world-application-tutorial","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/","title":{"rendered":"Spring boot Hello World Application Tutorial"},"content":{"rendered":"<p>Spring is a comprehensive, open-source framework for Java development, simplifying and accelerating the creation of enterprise-level applications. Known for its modular design, Spring facilitates the development of loosely coupled and easily testable components, fostering a more maintainable and scalable codebase. This framework offers a broad range of features, including dependency injection, aspect-oriented programming, and robust support for data access and transaction management. Let us delve into a practical approach to understanding the Spring boot tutorial with the Hello World application.<\/p>\n<h2><a name=\"introduction\"><\/a>1. Introduction<\/h2>\n<p><a href=\"https:\/\/spring.io\/why-spring\" target=\"_blank\" rel=\"noopener\">Spring<\/a> is a powerful, open-source framework for Java development that provides a comprehensive infrastructure for building enterprise-level applications. It offers a set of cohesive modules addressing various concerns, such as data access, security, and messaging, fostering a modular and scalable approach to software development.<\/p>\n<h3>1.1 Key Features of Spring<\/h3>\n<ul>\n<li>Dependency Injection (DI): Spring promotes the use of Inversion of Control (IoC) through DI, reducing coupling between components and enhancing testability.<\/li>\n<li>Aspect-Oriented Programming (AOP): AOP allows developers to separate cross-cutting concerns, such as logging and security, from the main business logic, improving code modularity.<\/li>\n<li>Data Access: Spring provides robust support for data access, including JDBC abstraction, ORM framework integration (e.g., Hibernate), and declarative transaction management.<\/li>\n<li>Model-View-Controller (MVC): The Spring MVC framework simplifies the development of web applications by providing a flexible and customizable MVC architecture.<\/li>\n<li>Security: Spring Security offers a comprehensive framework for authentication, authorization, and protection against common security vulnerabilities.<\/li>\n<li>Transaction Management: Spring simplifies transaction management across various transactional resources, ensuring data consistency and reliability.<\/li>\n<li>Enterprise Integration: Spring facilitates seamless integration with enterprise technologies, such as JMS, JCA, and various messaging systems.<\/li>\n<li>Testing Support: Spring&#8217;s design encourages the creation of unit-testable and mockable components, enhancing the overall testability of applications.<\/li>\n<\/ul>\n<h3>1.2 Advantages of Using Spring<\/h3>\n<ul>\n<li>Modularity: Spring&#8217;s modular design promotes the development of loosely coupled and highly cohesive components, fostering maintainability and scalability.<\/li>\n<li>Simplified Development: Spring&#8217;s abstraction over complex technologies and boilerplate code simplifies development, enabling developers to focus on business logic.<\/li>\n<li>Flexibility: Spring&#8217;s diverse set of modules allows developers to choose the components they need, promoting flexibility in application architecture.<\/li>\n<li>Community Support: Spring has a large and active community, providing a wealth of resources, documentation, and support for developers.<\/li>\n<li>Integration Capabilities: Spring seamlessly integrates with various technologies, making it suitable for building diverse applications, from traditional monoliths to modern microservices.<\/li>\n<li>Enterprise-Ready: Spring is widely adopted in enterprise environments due to its robust features, scalability, and support for building large-scale applications.<\/li>\n<li>Continuous Innovation: The Spring ecosystem is continuously evolving, adapting to emerging technologies and trends in the software development landscape.<\/li>\n<\/ul>\n<h3>1.3 Limitations of Spring<\/h3>\n<ul>\n<li>Learning Curve: Spring has a steeper learning curve, especially for beginners, due to its extensive features and configurations.<\/li>\n<li>XML Configuration: In earlier versions, extensive XML configurations were required, which could lead to a verbose and complex setup.<\/li>\n<li>Runtime Overhead: Spring&#8217;s powerful features may introduce some runtime overhead, impacting the performance compared to lightweight frameworks for certain use cases.<\/li>\n<li>Annotation Overuse: In some cases, excessive use of annotations may lead to a cluttered codebase and reduced readability.<\/li>\n<li>Integration Testing Challenges: Writing integration tests for Spring applications can be challenging, especially when dealing with complex setups and external dependencies.<\/li>\n<li>Dependency on Container: Spring applications often rely on the Spring container, and breaking away from this dependency may be challenging for some projects.<\/li>\n<li>Size and Footprint: Spring&#8217;s extensive features contribute to a larger size and memory footprint, which might not be suitable for resource-constrained environments.<\/li>\n<li>Overhead for Simple Projects: For small and simple projects, the overhead introduced by the Spring framework may be considered unnecessary.<\/li>\n<li>Dynamic Runtime Changes: Making dynamic runtime changes without restarting the application might be challenging in certain scenarios.<\/li>\n<li>Community Modules Compatibility: Some third-party or community modules might not be fully compatible with the latest Spring versions, leading to potential compatibility issues.<\/li>\n<\/ul>\n<h2>2. Prerequisites for a Spring Boot Application<\/h2>\n<p>Prerequisites for developing a Spring Boot application may vary depending on the specific requirements and technologies involved. However, here are some general prerequisites:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<ul>\n<li>Java Development Kit (JDK): Install the latest version of JDK as Spring Boot applications are Java-based. You can download it from the official Oracle website or use OpenJDK.<\/li>\n<li>Integrated Development Environment (IDE): Choose an IDE such as Eclipse, IntelliJ IDEA, or Visual Studio Code for a more efficient development experience. These IDEs offer Spring Boot plugins and support for Java development.<\/li>\n<li>Build Tool: Spring Boot projects are often built using tools like Maven or Gradle. Install the preferred build tool and configure it in your development environment.<\/li>\n<li>Spring Boot CLI (Command Line Interface): While not mandatory, the Spring Boot CLI can be useful for quick prototyping and testing. Install it if you want to explore command-line development with Spring Boot.<\/li>\n<li>Database: If your application requires database access, ensure that the necessary database software is installed. Spring Boot supports various databases, including MySQL, PostgreSQL, and H2.<\/li>\n<li>Dependencies and Starter Templates: Familiarize yourself with the Spring Initializr (<a href=\"https:\/\/start.spring.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/start.spring.io\/<\/a>) to generate a basic project structure. Choose dependencies based on your application needs, such as web, data, security, etc.<\/li>\n<li>Version Control System: Use a version control system like Git to manage your source code. This is crucial for collaboration and code versioning.<\/li>\n<li>Understand the Basics of Spring: Have a fundamental understanding of the Spring framework concepts, including Dependency Injection (DI), Inversion of Control (IoC), and the core principles that Spring Boot builds upon.<\/li>\n<li>Web Development Basics: If you are developing a web application, it&#8217;s beneficial to have a basic understanding of web development concepts, including HTTP, REST, and MVC architecture.<\/li>\n<li>Testing Knowledge: Familiarize yourself with testing concepts and tools. Spring Boot provides support for unit testing, integration testing, and more.<\/li>\n<li>Containerization (Optional): If you plan to deploy your application using containers (e.g., Docker), some knowledge of containerization concepts will be helpful.<\/li>\n<\/ul>\n<h2><a name=\"example\"><\/a>3. Spring boot Hello World application example<\/h2>\n<p>Here is a basic spring boot example.<\/p>\n<h3>3.1 Create a Spring Boot Project and Add Dependencies<\/h3>\n<p>You can use the <a href=\"https:\/\/start.spring.io\/\" target=\"_blank\" rel=\"noopener\">Spring Initializr<\/a> to generate a basic Spring Boot project with the necessary dependencies.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/springbootstarterprojectstructureguide.jpg\"><img decoding=\"async\" width=\"250\" height=\"398\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/springbootstarterprojectstructureguide.jpg\" alt=\"Spring boot tutorial with Hello World application\" class=\"wp-image-121800\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/springbootstarterprojectstructureguide.jpg 250w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/springbootstarterprojectstructureguide-188x300.jpg 188w\" sizes=\"(max-width: 250px) 100vw, 250px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 1: Project Structure<\/figcaption><\/figure>\n<\/div>\n<p>Include the necessary dependencies in your project&#8217;s <code>pom.xml<\/code> file.<\/p>\n<ul>\n<li><code>spring-boot-starter-web<\/code>: This dependency includes the essential libraries and configurations for building a web-based application using Spring Boot. It includes the Spring MVC framework, embedded web server (like Tomcat), and other components needed for web development.<\/li>\n<li><code>spring-boot-starter-test<\/code>: This dependency is designed for testing purposes and includes the necessary dependencies to write and run tests in a Spring Boot application. It provides integration with testing frameworks like JUnit, TestNG, and the Spring TestContext Framework. The <code>test<\/code> scope ensures that these dependencies are only used during the testing phase and are not included in the production build.<\/li>\n<\/ul>\n<pre class=\"brush:xml; wrap-lines:false;\">\n&lt;dependencies&gt;\n\t&lt;dependency&gt;\n\t\t&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n\t\t&lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\n\t&lt;\/dependency&gt;\n\t&lt;dependency&gt;\n\t\t&lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n\t\t&lt;artifactId&gt;spring-boot-starter-test&lt;\/artifactId&gt;\n\t\t&lt;scope&gt;test&lt;\/scope&gt;\n\t&lt;\/dependency&gt;\n&lt;\/dependencies&gt;\n<\/pre>\n<h3>3.2 Configure Application Properties<\/h3>\n<p>The <code>application.properties<\/code> file in a Spring Boot application is a configuration file that allows you to externalize application configuration. It is a key-value pair file where you can define various properties that influence the behavior of your Spring Boot application. This file is often used to configure settings related to databases, server ports, logging, and other application-specific parameters. <\/p>\n<p>In this example, we have added the property <code>server.port<\/code> with the value <code>8180<\/code> to specify the port number for the server to listen on. You can change the port number to any desired value according to your application&#8217;s needs.<\/p>\n<pre class=\"brush:plain; wrap-lines:false;\">\n# Server Configuration\n\nserver.port=8180\n<\/pre>\n<h3>3.3 Create a Controller<\/h3>\n<p>In Spring Boot, a controller is a class that handles incoming HTTP requests and produces an appropriate response. Controllers play a crucial role in the Model-View-Controller (MVC) architectural pattern, which is commonly used for designing web applications. They receive input from the user, process it, and return the output as a response. <\/p>\n<p>Create a simple controller class to handle requests. For example, create a file named <code>HelloController.java<\/code> in the <code>src\/main\/java\/com\/example\/demo<\/code> directory:<\/p>\n<pre class=\"brush:java; wrap-lines:false;\">\npackage com.example.demo;\n\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.RestController;\n\n@RestController\npublic class HelloController {\n\n    @GetMapping(\"\/hello\")\n    public String hello() {\n        return \"Hello, Spring Boot!\";\n    }\n}\n<\/pre>\n<h3>3.4 Create Main class<\/h3>\n<p>The main class is responsible for starting the Spring Boot application and initializing the necessary configurations and beans. It serves as the entry point for the application and triggers the execution of the application&#8217;s components, such as controllers, services, and repositories.<\/p>\n<pre class=\"brush:java; wrap-lines:false;\">\npackage com.example.demo;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n@SpringBootApplication\npublic class DemoApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run(DemoApplication.class, args);\n    }\n}\n<\/pre>\n<h3>3.5 Run the Application<\/h3>\n<p>Run the application by executing the <code>DemoApplication<\/code> class, which contains the <code>main<\/code> method. You can do this from your IDE or using the following Maven command in the terminal:<\/p>\n<pre class=\"brush:plain; wrap-lines:false;\">\nmvn spring-boot:run\n<\/pre>\n<p>Below is the console output of this command:<\/p>\n<pre class=\"brush:plain; wrap-lines:false;\">\n[INFO] Scanning for projects...\n[INFO]\n[INFO] ----------------------------\n[INFO] Building your-spring-boot-app 0.0.1-SNAPSHOT\n[INFO] --------------------------------[ jar ]---------------------------------\n[INFO]\n[INFO] &gt;&gt;&gt; spring-boot-maven-plugin:2.6.2:run (default-cli) &gt; test-compile @ your-spring-boot-app &gt;&gt;&gt;\n[INFO]\n[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ your-spring-boot-app ---\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 0 resource\n...\n[INFO] --- spring-boot-maven-plugin:2.6.2:run (default-cli) @ your-spring-boot-app ---\n[INFO] Attaching agents: []\n\n...\n[INFO] Started your-spring-boot-app in 3.524 seconds (JVM running for 4.103)\n[INFO] \n[INFO] --- spring-boot-maven-plugin:2.6.2:run (default-cli) @ your-spring-boot-app ---\n<\/pre>\n<h3>3.6 Test the Application<\/h3>\n<p>Open your web browser and navigate to <code>http:\/\/localhost:8180\/hello<\/code>. You should see the message <code>Hello, Spring Boot!<\/code> displayed.<\/p>\n<h2>4. Conclusion<\/h2>\n<p>In conclusion, the &#8220;Spring Boot Hello World Example Beginners Guide&#8221; serves as an excellent introduction to the fundamental concepts of developing applications with Spring Boot. The guide empowers beginners by providing a step-by-step walkthrough of creating a simple &#8220;Hello World&#8221; application, laying the foundation for further exploration of the powerful Spring Boot framework.<\/p>\n<p>Key takeaways from the guide include:<\/p>\n<ul>\n<li>Streamlined Development: Spring Boot&#8217;s convention-over-configuration approach simplifies the development process, allowing developers to focus on business logic rather than intricate setups.<\/li>\n<li>Auto-Configuration: The guide highlights the efficiency of Spring Boot&#8217;s auto-configuration, where default settings intelligently adapt to the application&#8217;s needs, reducing the need for manual configuration.<\/li>\n<li>Dependency Management: Introduction to the Spring Initializr emphasizes the ease of managing project dependencies, enabling developers to select and include essential components tailored to their application requirements.<\/li>\n<li>RESTful Web Services: The guide introduces the basics of handling HTTP requests and responses, showcasing the development of a RESTful endpoint\u2014a fundamental skill for building modern web applications.<\/li>\n<li>Testing Support: Emphasis on testing underscores Spring Boot&#8217;s commitment to robust software engineering. The guide encourages unit testing, providing a glimpse into the framework&#8217;s testing capabilities.<\/li>\n<li>Further Exploration: By concluding with the creation of a minimal yet functional Spring Boot application, the guide sparks curiosity for exploring advanced topics such as database integration, security, and microservices architecture.<\/li>\n<li>Resourceful Community: The guide indirectly emphasizes the wealth of resources available within the Spring Boot community, including documentation, forums, and tutorials, providing ongoing support for learners.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Spring is a comprehensive, open-source framework for Java development, simplifying and accelerating the creation of enterprise-level applications. Known for its modular design, Spring facilitates the development of loosely coupled and easily testable components, fostering a more maintainable and scalable codebase. This framework offers a broad range of features, including dependency injection, aspect-oriented programming, and robust &hellip;<\/p>\n","protected":false},"author":119,"featured_media":1248,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[198,1386],"class_list":["post-121799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring","tag-enterprise-java-2","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring boot Hello World Application Tutorial - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring boot Hello World Application Tutorial - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-13T09:39:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-13T09:40:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\"},\"author\":{\"name\":\"Yatin\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\"},\"headline\":\"Spring boot Hello World Application Tutorial\",\"datePublished\":\"2023-12-13T09:39:58+00:00\",\"dateModified\":\"2023-12-13T09:40:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\"},\"wordCount\":1628,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg\",\"keywords\":[\"enterprise java\",\"spring boot\"],\"articleSection\":[\"spring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\",\"name\":\"Spring boot Hello World Application Tutorial - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg\",\"datePublished\":\"2023-12-13T09:39:58+00:00\",\"dateModified\":\"2023-12-13T09:40:01+00:00\",\"description\":\"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"spring\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/spring\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Spring boot Hello World Application Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\",\"name\":\"Yatin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"caption\":\"Yatin\"},\"description\":\"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring boot Hello World Application Tutorial - Java Code Geeks","description":"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Spring boot Hello World Application Tutorial - Java Code Geeks","og_description":"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.","og_url":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2023-12-13T09:39:58+00:00","article_modified_time":"2023-12-13T09:40:01+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Yatin","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Yatin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/"},"author":{"name":"Yatin","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13"},"headline":"Spring boot Hello World Application Tutorial","datePublished":"2023-12-13T09:39:58+00:00","dateModified":"2023-12-13T09:40:01+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/"},"wordCount":1628,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg","keywords":["enterprise java","spring boot"],"articleSection":["spring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/","url":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/","name":"Spring boot Hello World Application Tutorial - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg","datePublished":"2023-12-13T09:39:58+00:00","dateModified":"2023-12-13T09:40:01+00:00","description":"Spring boot tutorial with Hello World application: Start Java-based web development with a Hello World application in Spring Boot tutorial.","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/spring-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/spring-boot-hello-world-application-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/"},{"@type":"ListItem","position":4,"name":"spring","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/enterprise-java\/spring\/"},{"@type":"ListItem","position":5,"name":"Spring boot Hello World Application Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13","name":"Yatin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","caption":"Yatin"},"description":"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).","sameAs":["https:\/\/www.javacodegeeks.com"],"url":"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/121799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/119"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=121799"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/121799\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1248"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=121799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=121799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=121799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}