기본 콘텐츠로 건너뛰기

스프링 부트 초기 설정 기능들 설명 (with 인텔리제이)

 스프링 부트 4.0.4 기반으로 오랜만에 세팅하려고 하니까 옵션이 워낙 많아서 클도드를 통해서 정리해둠


Developer Tools

Spring Boot DevTools

    - 코드 변경 시 자동 재시작, LiveReload(브라우저 자동 새로고침), 캐시 비활성화, 빠른 빌드 지원. runtime 스코프로만 동작해 프로덕션 빌드엔 포함 안 됨.


Lombok

    - @Getter @Setter @Builder @Data @Slf4j 등 어노테이션 하나로 getter/setter/생성자/로거를 컴파일 타임에 자동 생성.


Spring Configuration Processor

    - @ConfigurationProperties 클래스를 분석해 spring-configuration-metadata.json을 생성. IDE에서 application.yml 작성 시 자동완성과 타입 검증 제공.


Docker Compose Support

    - Spring Boot 3.1+에서 compose.yaml을 감지해 앱 시작 시 docker compose up을 자동 실행. 앱 종료 시 자동 docker compose stop도 지원.


Spring Modulith

    - 단일 Spring Boot 앱 내 패키지 경계를 모듈로 선언하고, 모듈 간 의존성 위반을 테스트로 검증. 이벤트 기반 통신, 모듈 문서 자동 생성 지원.


GraalVM Native Support

    - JVM 없이 실행되는 네이티브 바이너리로 컴파일. 콜드 스타트가 수십 ms, 메모리 사용량이 JVM 대비 최대 80% 절감. 단, 빌드 시간이 수 분으로 증가하고 리플렉션 설정이 복잡.


GraphQL DGS Code Generation

    - Netflix DGS 프레임워크용. GraphQL 스키마(.graphqls)에서 Java/Kotlin 타입·Data Fetcher 인터페이스를 자동 생성. GraphQL API를 type-safe하게 구현할 때 사용.








댓글

이 블로그의 인기 게시물

네이버페이 리뷰 API 연동

네이버 페이 리뷰 API 네이버 측에 문의 하면 sandbox용 인증키를 받습니다. AccessLicense, SecretKey 그리고 받은 파일의 4. WSDL을 열어 주시고 Naver_Pay_API_MallService41_WSDL(sandbox)_20140925파일 압축 풀어주세요 그럼 파일이 BaseType.xsd, CheckoutAPI.wsdl, MallServiceMessage.xsd 세개의 파일이 나옵니다. 네이버페이 리뷰 리스트 가져오는 메소드는 getPurchaseReviewList입니다. BaseType.xsd를 켜신 후 MallID로 검색하면 <xs:complexType name="purchaseReview"> 안쪽의 MallID밑에  <xs:element minOccurs="0" name="PurchaseReviewClassType" type="xs:string"/> 추가해주세요 포토 리뷰를 가져오는 파라미터 값을 보내기 위해서 입니다. <xs:element minOccurs="0" name="Content" type="xs:string"/> 이값도 필요합니다 이미지 경로를 가져오기 위해서 입니다. <xs:complexType name="purchaseReview">     <xs:sequence>       <xs:element minOccurs="0" name="CreateYmdt" type="xs:dateTime"/>       <xs:element minOccurs="0" name="MallID" type="xs:string"/>   <xs:element minOccurs="0" nam...

메이븐으로 라이브러리 인식

 간혹 퍼블릭 jar가 아닌 파일이 있는데 그럴때 쓰면 될듯 <dependency> <groupId> SimpleCryptLib </groupId> <artifactId> SimpleCryptLib </artifactId> <version> 1.1.0 </version> <scope> system </scope> <systemPath> ${basedir}/src/main/webapp/WEB-INF/lib/SimpleCryptLib-1.1.0.jar </systemPath> </dependency> version, scope, systemPath는 꼭 작성해야 한다 groupId, artifactId, version은 암거나 해도 되는거 같음 최근(2021.05.04)스프링 부트    < dependency > < groupId > NiceID </ groupId > < artifactId > NiceID </ artifactId > < version > 1.0 </ version > < scope > system </ scope > < systemPath > ${basedir}/src/main/resources/lib/NiceID.jar </ systemPath > </ dependency > 이걸 추가해주는것도 필요할지도..?? < build > < plugins > < plugin > < groupId > org.springframework.boot </ groupId > < artifactId > spring-bo...

mac 맥 맥북 Brew 완전 삭제

맥북에서 Brew 초기화 Brew를 써서 h2를 쓰려고 하는데 brew install h2가 안되서 이리 저리 알아보다가 완전 삭제 후 다시 설치 하니까 되서 그 방법을 남겨놈 1. 터미널에 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" 입력후 y랑 뭐 비번.. 2. /usr/local 폴더에서 Homebrew 폴더 삭제 rm -rf Homebrew/ 권한설정으로 잘.....삭제하고 3. 다시 설치 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 좀 오래걸리니까 기다려야한다는걸 배움... 출처.... https://discourse.brew.sh/t/error-no-formulae-found-in-taps/8331/9