Spring1 (프로젝트 생성)

1 분 소요

#1

Untitled

  • Spring Initializr create Spring Boot applications using the Spring Initializr service
  • Type : Gradle - Groovy
  • JDK : 17 (오류가 안났음)
Spring Boot
세 가지 핵심 기능을 통해 Spring Framework를 사용하여 더 빠르고 쉽게 웹 애플리케이션과 마이크로서비스를 개발하도록 돕는 툴.
  1. 자동 구성
  2. 구성에 대한 독선적 접근 방식
  3. 독립형 애플리케이션을 만드는 능력
    https://www.ibm.com/kr-ko/topics/java-spring-boot

Gradle vs Maven (Build Tool)
https://medium.com/@samuelcatalano/maven-vs-gradle-key-differences-81d366bf45d6

Untitled 1

#2

Untitled 2

  • Lombok
    Java annotation library which helps to reduce boilerplate code.
    • 어노테이션 기반으로 코드를 자동완성 해주는 라이브러리이다. Lombok을 이용하면 Getter, Setter, Equlas, ToString 등과 다양한 방면의 코드를 자동완성 시킬 수 있다.
  • Spring Web
    Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.
    • Spring Web을 이용하면 웹을 더 편리하고 빠르게 만들 수 있으며 다양한 기능과 도구를 제공하여 개발자의 부담을 덜어주는 도구

#3

Untitled 3

  • Reload All Gradle Projects

Untitled 4

  • 성공

에러

Execution failed for task ':compileJava'.
> error: invalid source release: **22**

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3s
1 actionable task: 1 executed
  • build.gradle
    • version에 맞게 수정
      java {
          sourceCompatibility = **'17'**
      }
    

카테고리:

업데이트: