{"id":33057,"date":"2024-11-01T09:13:27","date_gmt":"2024-11-01T09:13:27","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=33057"},"modified":"2024-11-01T11:29:09","modified_gmt":"2024-11-01T11:29:09","slug":"spring-boot-backend-development-course-development-environment-installing-intellij-on-macos","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/33057\/","title":{"rendered":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS"},"content":{"rendered":"<p>Spring Boot is a Java-based framework that helps you build RESTful web services quickly and easily. In this course, you will learn backend development using Spring Boot and how to install IntelliJ IDEA for development in a macOS environment. This course covers content from basics to advanced topics.<\/p>\n<h2>1. Understanding Spring Boot<\/h2>\n<p>Spring Boot is built on top of the Spring framework, and it helps to set up and configure your projects more quickly than traditional Spring projects. This allows developers to write only the code they need, reducing the time spent on repetitive configurations. Spring Boot can flexibly respond to various deployment structures, such as cloud environments and microservices architectures.<\/p>\n<h3>1.1 Features of Spring Boot<\/h3>\n<ul>\n<li><strong>Auto Configuration<\/strong>: Automatically handles common configurations, allowing developers to focus on business logic.<\/li>\n<li><strong>Starter Dependency Management<\/strong>: Easily manages necessary libraries through Maven or Gradle.<\/li>\n<li><strong>Executor Support<\/strong>: Facilitates asynchronous processing to enhance performance and scalability.<\/li>\n<li><strong>Prebuilt Aspects<\/strong>: Quickly develop using pre-made templates.<\/li>\n<\/ul>\n<h2>2. Setting Up the Development Environment<\/h2>\n<p>Now we will set up the environment needed to develop a Spring Boot project. Follow the steps below to install IntelliJ IDEA on macOS and set up the JDK.<\/p>\n<h3>2.1 Installing the JDK<\/h3>\n<p>To develop with Spring Boot, you need the Java Development Kit (JDK). On macOS, you can easily install the JDK via Homebrew.<\/p>\n<pre><code>brew install openjdk@11<\/code><\/pre>\n<p>Once the installation is complete, set the system environment variables. This will allow the system to recognize the path to the JDK.<\/p>\n<pre><code>echo 'export JAVA_HOME=\"$(brew --prefix openjdk@11)\"' &gt;&gt; ~\/.zshrc<\/code><\/pre>\n<pre><code>source ~\/.zshrc<\/code><\/pre>\n<h3>2.2 Installing IntelliJ IDEA<\/h3>\n<p>IntelliJ IDEA is one of the most popular Java IDEs. Install it on macOS following the steps below.<\/p>\n<h4>2.2.1 Installing via Homebrew<\/h4>\n<p>If you already use Homebrew, you can install IntelliJ IDEA Community Edition with the following command.<\/p>\n<pre><code>brew install --cask intellij-idea-community<\/code><\/pre>\n<h4>2.2.2 Direct Download<\/h4>\n<p>You can also download and install it directly. Download the IntelliJ IDEA Community Edition from JetBrains&#8217; official website and install it. Once installed, run the program and follow the setup wizard to configure the basic environment.<\/p>\n<h3>2.3 Configuring IntelliJ IDEA<\/h3>\n<p>When you first start IntelliJ IDEA, you need to install the required plugins and configure the environment. The plugin for Spring Boot is built into the IDE, but you can also install additional plugins if needed.<\/p>\n<ol>\n<li>Run IntelliJ IDEA.<\/li>\n<li>In the main menu, select <strong>File<\/strong> &gt; <strong>Settings<\/strong> (for macOS, <strong>IntelliJ IDEA<\/strong> &gt; <strong>Preferences<\/strong>).<\/li>\n<li>Navigate to the <strong>Plugins<\/strong> tab and search for and install any necessary additional plugins.<\/li>\n<\/ol>\n<h2>3. Creating a Spring Boot Project<\/h2>\n<p>Now let&#8217;s create a Spring Boot project in IntelliJ IDEA. This will enable you to start backend development in earnest.<\/p>\n<h3>3.1 Creating a New Project<\/h3>\n<ol>\n<li>Click <strong>New Project<\/strong> in IntelliJ IDEA.<\/li>\n<li>Select <strong>Spring Initializr<\/strong> from the left menu.<\/li>\n<li>Set the Project SDK to JDK 11.<\/li>\n<li>Click the <strong>Next<\/strong> button to proceed to the next step.<\/li>\n<li>Configure the Group and Artifact. For example, set Group to <strong>com.example<\/strong> and Artifact to <strong>demo<\/strong>.<\/li>\n<li>Select the necessary libraries under Dependencies. For example, you can choose <strong>Spring Web<\/strong>, <strong>Spring Data JPA<\/strong>, etc.<\/li>\n<li>Click <strong>Finish<\/strong> to create the project.<\/li>\n<\/ol>\n<h3>3.2 Understanding Project Structure<\/h3>\n<p>Once the project is created, you need to understand the basic structure of Spring Boot. Typically, the generated project has the following directory structure:<\/p>\n<ul>\n<li><strong>src\/main\/java<\/strong>: The directory where the Java code resides.<\/li>\n<li><strong>src\/main\/resources<\/strong>: The directory containing configuration files (yml, properties) and static resources.<\/li>\n<li><strong>src\/test\/java<\/strong>: The directory where the test code resides.<\/li>\n<\/ul>\n<h3>3.3 Modifying Basic Configuration Files<\/h3>\n<p>You can adjust basic settings by modifying the <strong>application.properties<\/strong> or <strong>application.yml<\/strong> file in the project root directory. Configure database connection information, server ports, etc.<\/p>\n<h2>4. Creating Your First Controller<\/h2>\n<p>Now let&#8217;s create a simple RESTful API to verify that the Spring Boot application is functioning.<\/p>\n<h3>4.1 Creating a Hello Controller<\/h3>\n<pre><code>package com.example.demo.controller;\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}<\/code><\/pre>\n<h3>4.2 Running the Application<\/h3>\n<p>After writing the controller, start the application by running the main application class. You can build and run the project by executing the following command in the terminal.<\/p>\n<pre><code>.\/mvnw spring-boot:run<\/code><\/pre>\n<p>In your web browser, enter <strong>http:\/\/localhost:8080\/hello<\/strong> to see the message &#8220;Hello, Spring Boot!&#8221;.<\/p>\n<h2>5. Conclusion<\/h2>\n<p>Through this course, you learned the basic concepts of Spring Boot, how to install IntelliJ IDEA on macOS, and how to build a simple RESTful API. You gained an understanding of the advantages and strengths of Spring Boot, laying the groundwork for using it in real projects. The next steps should include learning about database integration, security and authentication, testing, and deployment methodologies.<\/p>\n<h2>6. References<\/h2>\n<p>Please explore the resources below for more in-depth study.<\/p>\n<ul>\n<li><a href=\"https:\/\/spring.io\/projects\/spring-boot\">Official Spring Boot Documentation<\/a><\/li>\n<li><a href=\"https:\/\/docs.oracle.com\/en\/java\/javase\/11\/docs\/api\/index.html\">Java SE 11 API Documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.jetbrains.com\/idea\/\">Official IntelliJ IDEA Site<\/a><\/li>\n<\/ul>\n<footer>\n<p>Author: Your Name<\/p>\n<p>Email: example@example.com<\/p>\n<p>Blog: <a href=\"https:\/\/yourblog.com\">https:\/\/yourblog.com<\/a><\/p>\n<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot is a Java-based framework that helps you build RESTful web services quickly and easily. In this course, you will learn backend development using Spring Boot and how to install IntelliJ IDEA for development in a macOS environment. This course covers content from basics to advanced topics. 1. Understanding Spring Boot Spring Boot is &hellip; <a href=\"https:\/\/atmokpo.com\/w\/33057\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[131],"tags":[],"class_list":["post-33057","post","type-post","status-publish","format-standard","hentry","category-spring-boot-backend-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/33057\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Spring Boot is a Java-based framework that helps you build RESTful web services quickly and easily. In this course, you will learn backend development using Spring Boot and how to install IntelliJ IDEA for development in a macOS environment. This course covers content from basics to advanced topics. 1. Understanding Spring Boot Spring Boot is &hellip; \ub354 \ubcf4\uae30 &quot;Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/33057\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:13:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:29:09+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS\",\"datePublished\":\"2024-11-01T09:13:27+00:00\",\"dateModified\":\"2024-11-01T11:29:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/\"},\"wordCount\":751,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Spring Boot backend development\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/\",\"url\":\"https:\/\/atmokpo.com\/w\/33057\/\",\"name\":\"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:13:27+00:00\",\"dateModified\":\"2024-11-01T11:29:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/33057\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/33057\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/33057\/","og_locale":"ko_KR","og_type":"article","og_title":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Spring Boot is a Java-based framework that helps you build RESTful web services quickly and easily. In this course, you will learn backend development using Spring Boot and how to install IntelliJ IDEA for development in a macOS environment. This course covers content from basics to advanced topics. 1. Understanding Spring Boot Spring Boot is &hellip; \ub354 \ubcf4\uae30 \"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS\"","og_url":"https:\/\/atmokpo.com\/w\/33057\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:13:27+00:00","article_modified_time":"2024-11-01T11:29:09+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/33057\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/33057\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS","datePublished":"2024-11-01T09:13:27+00:00","dateModified":"2024-11-01T11:29:09+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/33057\/"},"wordCount":751,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Spring Boot backend development"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/33057\/","url":"https:\/\/atmokpo.com\/w\/33057\/","name":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:13:27+00:00","dateModified":"2024-11-01T11:29:09+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/33057\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/33057\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/33057\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Spring Boot Backend Development Course, Development Environment, Installing IntelliJ on macOS"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=33057"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33057\/revisions"}],"predecessor-version":[{"id":33058,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33057\/revisions\/33058"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=33057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=33057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=33057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}