본문 바로가기 메뉴 바로가기

메모로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

메모로그

검색하기 폼
  • 분류 전체보기 (20)
    • 공지사항 (0)
    • 메모로그 (9)
      • MySQL (4)
      • StartUML (0)
      • MyBatis (0)
      • 기타등등 (5)
    • Spring (5)
      • 컨텍스트 (0)
      • 어노테이션 (3)
      • Spring Boot 2.4 변동내역 (1)
      • Security (1)
    • JPA (1)
    • BlockChain (0)
    • Javascript (3)
      • Backbone (1)
      • 기타 (2)
  • 방명록

DI (1)
lombok - @RequiredArgsConstructor

생성자를 만들어준다. : 인수가없는 생성자, final / @NonNull 각 필드에 또는 모든 필드에 대해 인수를 사용하는 생성자를 생성합니다. public class RequiredArgsConstructorClass { private final AnotherService anotherService; public RequiredArgsConstructorClass (AnotherService anotherService) { this.anotherService = anotherService; } @RequiredArgsConstructor public class RequiredArgsConstructorClass { private final AnotherService anotherService; } @..

Spring/어노테이션 2021. 4. 15. 14:20
이전 1 다음
이전 다음
  • 1
  • favicontwitter
  • faviconfacebook
메모로그
노랑파자마

Blog is powered by Tistory / Designed by Tistory

티스토리툴바