
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | plugins { id 'java' id 'org.springframework.boot' version '2.5.4' id 'io.spring.dependency-management' version '1.0.11.RELEASE' } group = 'com.beans' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = JavaVersion.VERSION_11 } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' runtimeOnly 'mysql:mysql-connector-java:8.0.32' runtimeOnly 'com.h2database:h2' testImplementation 'org.springframework.boot:spring-boot-starter-test' } bootJar { enabled = true } tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } tasks.withType(JavaExec) { maxHeapSize = "1024m" // 메모리 크기 조절 } dependencyManagement { imports { mavenBom "org.springframework.boot:spring-boot-dependencies:2.5.4" } } | cs |
build.gradle의 설정을 하였습니다.
오늘 공부해볼 주제는
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | package com.beans.erp; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class BeansErpApplication { public static void main(String[] args) { SpringApplication.run(BeansErpApplication.class, args); } } | cs |
중
입니다.
이 애노테이션은 실제로 세 가지 애노테이션을 함께 묶어놓은 것입니다. 각각의 애노테이션들이 하는 역할을 살펴보겠습니다.
좋은 글 감사합니다.