스프링 부트의 애노테이션 Main Application @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } @SpringBootApplication 스프링 부트의 자동 설정, 스프링 Bean 읽기와 생성이 모두 가능하다. 해당 애노테이션이 있는 부분부터 설정을 읽어가기 때문에, 해당 애노테이션이 있는 클래스는 항상 프로젝트의 최상단에 위치해야한다. SpringApplication.run() run()으로 인해 Spring Boot의 내장 WAS를 실행한다. 이를 통해서 톰캣을 설치할 필요가 없고, 스프링..
gradle 기반 Spring boot 프로젝트 생성 build.gradle 설정 buildscript { ext { springBootVersion = '2.1.7.RELEASE' } //ext{}는 build.gradle에서 사용하는 전역변수를 설정하겠다라는 의미 //의미 : springBootVersion을 2.1.7.RELEASE로 하겠다. repositories { mavenCentral() jcenter() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } //spring-boot-gradle-plugin라는 스프링 부트 그레이들 플러그인의 2.1.7.RELE..
- Total
- Today
- Yesterday
- 빈 순환 참조
- package-private
- 자바8
- 빌더 패턴
- java
- junit
- ifPresent
- 연관관계
- JPA
- 김영한
- flatMap
- mustache
- 팩토리 메소드 패턴
- jdk버전
- Effective Java
- 정적팩터리메서드
- 이펙티브자바
- try catch finally
- springboot
- 이펙티브 자바
- 생성자
- 점층적 생성 패턴
- 스프링부트
- Spring
- 인프런
- effectivejava
- @Lazy
- 복사 팩토리
- try with resources
- java8
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |