일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- java
- 컨테이너
- multivm
- mongodb operator
- bash
- Engineer
- DOIK
- ioredirection
- RSS
- httpd실행
- devops #jenkins
- 쿠버네티스
- 초간단파이썬
- python
- linux
- nginx
- Kubernetes
- springboot
- container
- namespace
- docker
- 파이썬
- 도커
- Strimzi
- variable
- k8s
- devops #engineer
- WEB
- Vagrant
- aws #engineer
- Today
- Total
목록전체 글 (81)
샤인의 IT (막 적는) 메모장
postgresql 연동 postgresql 설치 https://www.postgresql.org/download/windows/ DB 설정값은 default! 설치 후 psql 실행 DB 생성 CREATE DATABASE student; GRANT ALL PRIVILEGES ON DATABASE “” TO ; \c \d relation App으로 돌아와서 프로퍼티 및 디펜던시 파일 수정 후 실행 DB 설정 정보 입력 application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/student spring.datasource.username="" spring.datasource.password="" spring.jpa.hiber..
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..
앞전에서 AppApplication에 설정하여 실행했지만 실제로 따로 Controller 클래스를 생성하여 사용함. 사용한 rombok @RestController @RequestMapping @GetMapping MVC 구조 기존 AppApplication 내 GET 매핑 정보를 Controller로 생성한다. StudentController.java package com.js.app.student; import java.time.LocalDate; import java.time.Month; import java.util.List; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.a..