일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 오마이포쉬
- checked exception
- ControllerAdvice
- ohmyposh
- exception
- PowerShell
- Spring AOP
- undeclaredthrowableexception
- Theme
- Custom Exception
- 랜덤 테마
- runtimeexception
- Today
- Total
목록전체 글 (12)
글
자동 배포시 서버의 다운타임을 줄이기 위해 Nginx 가 두 Spring boot 로 트래픽을 로드 밸런싱 하도록 설정각각 어플리케이션은 github action 에서 빌드 후 docker hub에 push -> deploy.sh 실행해 배포docker-compos.ymlversion: '3.8'services: nginx: image: nginx:latest ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./ssl:/etc/nginx/ssl app1: image: miensoap/issue_tracker:latest environment: ..

2024.06.02 - [Troubleshooting] - UndeclaredThrowableException ?? (1)이전글 왜 UndeclaredThrowableException 이 발생했을까요? 프록시 인스턴스에서 호출된 메서드 (이 경우 컨트롤러의 메서드) 의 throw 절에 선언된 예외에 할당할 수 없는'checked exception' 이 발생했을 때 던지는 예외였습니다. package org.apache.tomcat.websocket;public class AuthenticationException extends Exception tomcat.websocket의 'AuthenticationException` 은 'Exception`을 상속하는 'checked exception` 이었기..
Spring AOP + ControllerAdvice 사용 중 만난 `UndeclaredThrowableException`상황https://github.com/codesquad-masters2024-team01/issue-tracker/tree/BE GitHub - codesquad-masters2024-team01/issue-tracker: 그룹 프로젝트그룹 프로젝트. Contribute to codesquad-masters2024-team01/issue-tracker development by creating an account on GitHub.github.com 프로젝트 진행 중 `Authorization header` 의 JWT 토큰을 검증하고, 유저 ID 정보를 얻는 로직을 Spring AOP..
문제 - 백준 10828번 풀이 중 StirngTokenizer.nextToken 에서 NoSuchElementException 발생 public class P10828 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StackIpl stk = new StackIpl(); int n = sc.nextInt(); sc.nextLine(); // 해결 for (int i = 0; i < n; i++){ StringTokenizer st = new StringTokenizer(sc.nextLine()); String cmd = st.nextToken(); 해결 - Scanner.nextInt() 후 버퍼에 개행문자 ..