ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • SpringBoot Create Project
    DEV/SpringBoot 2025. 2. 25. 16:45

     

     

    spring Boot는 Java 기반 애플리케이션을 쉽게 개발하고 배포할 수 있도록 도와주는 오픈소스 프레임워크

    최소한의 설정으로 빠르게 실행 가능한 독립적인 애플리케이션을 개발할 수 있도록 지원

     

     

     

     

     

     

    ▶ Start?

     SpringBoot를 해보겠다는 마음을 먹고 처음 내가 한 것은 !! IDE(integrated Development Environment) 선정 :)

    사실 Intellij 쓰겠다는 마음은 이미 먹고 있다 ~

    eclipse는 학부 때 사용하기도 했고 인프라 현업을 하면서 프로젝트룸을 방문해도 아직은

    intellij 쓰는 개발자 분을 많이 보지는 못...😅

     

     

     

    ▶ Create Project

     intellij 설치는 별도로 안내하지 않겠습니다... ( 이미 다른 포스팅 good! good! )

    사실 설치 이런거는 시기에 따라서 변경되는 것이 많아서 최신 글을 보고 설치하는 것을 권고하고 싶습니다 😃

     

    참고적으로 springboot 버전별로 최소 지원 Java 버전이 있습니다.

    2.x = java 1.8 / 3.x = java 17

     

     

    #1 '새 프로젝트' 만들기

     springboot 3.x 버전으로 할까 하다가 java 1.8 또는 java11 사용자가 많아서 2.x 결정!

     

     

    #2 'build.gralde.kts' 수정하기

    이니셜라이저를 사용하지 않고 하기 때문에 " 의존성 관리, spring-boot-plugin, libary repository" 관련 사항을 추가하여 설정 :)

    plugins {
        id("org.springframework.boot") version "2.7.18"
        id("io.spring.dependency-management") version "1.1.4"
        id("java")
    }
    
    group = "com.kior.blog"
    version = "1.0-SNAPSHOT"
    java.sourceCompatibility = JavaVersion.VERSION_1_8
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        implementation("org.springframework.boot:spring-boot-starter-web")
        testImplementation("org.springframework.boot:spring-boot-starter-test")
    }
    
    tasks.test {
        useJUnitPlatform()
    }

     

     

    #3 반영하기!

     

    < "Gradle 변경 사항 동기화"를 클릭하여 반영합니다.

     

    ...(생략)
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
    
    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    
    For more on this, please refer to https://docs.gradle.org/8.10/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
    
    BUILD SUCCESSFUL in 32s

     

     

    < 창 기준으로 오른쪽에 "Gradle" 을 확인할 때 아래와 같으면 완료! 

     

     

     

     

    우선 시작했다...

    그러니 끝까지 해봐야지 :)

    2.x 버전이니깐 나중에 3.x로!

     

     

    'DEV > SpringBoot' 카테고리의 다른 글

    SpringBoot API(등록/수정/조회) 만들기  (0) 2025.05.12
    SpringBoot Use JPA  (0) 2025.04.29
    SpringBoot Use Lombok  (0) 2025.03.26
    SpringBoot Hello Controller  (0) 2025.03.11
    SpringBoot used Git for Intellij  (0) 2025.03.07
Designed by Tistory.