반응형
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 | 31 |
Tags
- 도커
- variable
- DOIK
- container
- 초간단파이썬
- ioredirection
- Engineer
- springboot
- namespace
- 컨테이너
- mongodb operator
- multivm
- httpd실행
- aws #engineer
- java
- linux
- devops #jenkins
- 파이썬
- devops #engineer
- Kubernetes
- docker
- 쿠버네티스
- k8s
- WEB
- bash
- Strimzi
- Vagrant
- python
- RSS
- nginx
Archives
- Today
- Total
목록Di (1)
샤인의 IT (막 적는) 메모장
[JAVA] Springboot DI(의존성 주입)
Service의 구조체의 의존성 주입을 위해(Controller) 1. Autowired 롬복을 사용 2. 최종적인 값(변하지 않는 객체 값) final 사용 StudentController.java ... public class StudentController { private final StudentService studentService; @Autowired public StudentController(StudentService studentService) { this.studentService = studentService; } Business Logic을 담는 Service 클래스 생성 Component 대신 Service 롬복 사용 StudentService.java package com.js..
Programming/JAVA
2022. 1. 2. 22:58