일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 헥사고날아키텍처 #육각형아키텍처 #유스케이스
- mp4fpsmod
- 코루틴 컨텍스트
- 오블완
- 티스토리챌린지
- PytestPluginManager
- tolerated
- 개성국밥
- JanusGateway
- 겨울 부산
- kotlin
- taint
- vfr video
- 달인막창
- python
- k8s #kubernetes #쿠버네티스
- PersistenceContext
- JanusWebRTCServer
- Spring Batch
- Value too long for column
- 코루틴 빌더
- 자원부족
- preemption #
- JanusWebRTC
- JanusWebRTCGateway
- pytest
- table not found
- terminal
- VARCHAR (1)
- 깡돼후
목록분류 전체보기 (583)
너와 나의 스토리
pytest 에러 발생 AttributeError: 'PytestPluginManager' object has no attribute 'addhooks' pytest-html에서도 문제가 생겼어서 재설치하고 pytest-xdist도 업데이트하고... https://github.com/pytest-dev/pytest/issues/7658 삽질을 했지만 해결되지 않음.. error message만 달라질 뿐 해결 방법 python 버전이 3.9였었는데 최신 버전인 3.10으로 업데이트하고 requirement 재설치하니까 문제 해결됨 ㅎㅎ
인증서 만료일 확인 kubectl get secret ${secretName} -n ${namespace} -o "jsonpath={.data['tls\.crt']}" | base64 -d | openssl x509 -enddate -noout 인증서 갱신 인증서(~crt.pem, ~key.prm)가 저장된 폴더로 이동 kubectl create secret tls ${secret_name} --key ${tls_key_file_name} --cert ${tls_cert_file_name} -n ${namespace} --dry-run -o yaml | kubectl apply -f-
@Entity @Table(name = "user") public class UserEntity{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "name", nullable = false) private String name; @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "user_id") private Set jobs; //... } @Entity @Table(name = "job") public class JobEntity { @Id @Generate..
Kotlin 사이트에 나와있는 내용을 기반으로 번역 및 추가 내용을 정리하였습니다. Class Layout class의 내용은 다음 순서로 정의돼야 합니다. Property 선언과 initializer blocks Secondary constructors Method 선언 Companion Object class Layout() { // Property var name = "name" val age: Int // Initializer block init { age = 20 } // Secondary constructors constructor(_name: String) : this() { name = _name } // Companion object companion object { private con..
takeIf If문이랑 비슷한 역할이다. 조건에 해당되면 해당 값을, 조건에 맞지 않으면 null을 리턴한다. 리턴 값이 Boolean인 함수를 인자로 받는다. 예: input에 "hi" 문자열이 포함된 경우 input 리턴, 포함되지 않은 경우 null 리턴 input.takeIf { input.contains("hi") } takeUnless takeIf의 반대. 조건에 해당되면 null을 반환하고, 조건에 맞지 않으면 해당 값을 리턴. 리턴 값이 Boolean인 함수를 인자로 받는다. 예: input이 (null 또는 빈 칸)이 아닌 경우 input 리턴, (null 또는 빈 칸)인 경우 null 리턴 input.takeUnless { input.isNullOrBlank() }
Custom Error Response 보내는 방법 https://hororolol.tistory.com/649 [Spring] @ControllerAdvice를 이용하여 exception handling - Custom Error Response 보내기 & message를 포함한 error res Exception Handler Rest API로 받은 요청을 처리하다가 exception이 발생하는 경우가 있다. 이러한 exception들을 한 곳에서 처리하도록 ExceptionHandler를 만들어보자. @ControllerAdvice에 있는 메서드들은 모.. hororolol.tistory.com RestTemplate에서 다음과 같은 custom response로 응답이 온다고 하자. Respon..
문제: https://programmers.co.kr/learn/courses/30/lessons/17676?language=java = 시작 시간[j] i+1
Exception Handler Rest API로 받은 요청을 처리하다가 exception이 발생하는 경우가 있다. 이러한 exception들을 한 곳에서 처리하도록 ExceptionHandler를 만들어보자. @ControllerAdvice에 있는 메서드들은 모든 controller에 전역으로 적용된다. 어떤 controller에서 exception이 발생하던지 이 exception handler에 명시된 대로 response가 반환된다. @ControllerAdvice internal class DeviceExceptionHandler { @ResponseStatus(HttpStatus.NOT_FOUND) @ExceptionHandler(DeviceNotFoundException::class) fun..