반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AWS CI/CD 구축하기
- Kafka
- Airflow
- Python
- codedeploy error
- aws
- VPN
- PostgreSQL
- redis
- chart.js
- Spring Error
- JavaScript
- IntelliJ
- codepipeline
- Flux
- kubeflow
- COALESCE
- SQL
- bootstrap
- chartjs
- node
- codebuild
- or some instances in your deployment group are experiencing problems.
- 도커
- aws cicd
- Spring
- codedeploy
- Jenkins
- docker
- java bigdecimal
Archives
- Today
- Total
목록RequiredArgsConstructor (1)
Small Asteroid Blog
[spring] @RequiredArgsConstructor
@RequiredArgsConstructor 다음 어노테이션은 초기화 되지 않은 final 필드나 @NonNull 이 붙은 필드를 인자값으로 하는 생성자를 @RequiredArgsConstructor 가 대신 생성해주는 것이다. 해당 클래스의 의존성 관계가 변경될 때마다 생성자 코드를 계속해서 수정해야하는 번거로움을 해결하고자 즉, 의존성 주입(DI)의 편의성을 위해 사용되는 것이다. 스프링에서 생성자로 주입받을 때 주로 @Autowired 를 사용했는데 @Autowired 보다 @RequiredArgsConstructor 로 생성자를 주입 받는게 권장하는 방법이라고 한다. 어노테이션 사용 @RequiredArgsConstructor @Service public class ApiService { priv..
백엔드/Spring
2022. 3. 25. 15:38