본문 바로가기

Java & Spring10

Eureka Server 관리 페이지 404에러 발생하는 경우 If your project already uses Thymeleaf as its template engine, the Freemarker templates of the Eureka server may not be loaded correctly. In this case it is necessary to configure the template loader manually: => 프로젝트가 이미 Thymeleaf를 템플릿 엔진으로 사용하고 있다면 Eureka 서버의 Freemarker 템플릿이 올바르게 로드되지 않을 수 있습니다. 이 경우 템플릿 로더를 수동으로 구성해야 합니다. application.yml spring: freemarker: template-loader-path: classpath:/te.. 2023. 8. 29.
Spring Boot 버전 다운그레이드 방법 1.build.gradle 수정 buildscript { repositories { mavenLocal() mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:2.3.2") } } plugins { id 'java' id 'org.springframework.boot' version '2.3.2' id 'io.spring.dependency-management' version '1.1.2' } group = 'com.example' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = '17' } repositories { mavenCentra.. 2023. 8. 21.
jMeter Random Controller https://sooo-9.tistory.com/33 JMeter Random, Random Order, Interleave Controller Random Controller 나중에 이야기할 Interleave Controller와 유사하게 작동하지만 하위 컨트롤러와 샘플러를 순서대로 처리하는 대신 각 패스에서 무작위로 하나를 선택한다는 점이 다릅니다 또, 여러 컨 sooo-9.tistory.com 2023. 5. 4.
[Zuul] route 타입 필터 작성 참조 https://javachoi.tistory.com/411 [Zuul] route 타입 필터 작성 - A/B 테스팅 구현하기 이번에는 route 타입 필터를 작성해서 간단하게 A/B 테스트를 구현해보겠습니다. 전체 코드는 맨 아래 링크에서 확인 가능합니다. 시나리오 기존 member-service에서 /hello 엔드포인트가 버전업 됐습니 javachoi.tistory.com 2023. 4. 17.
PKIX path building failed 에러 해결 PKIX path building failed Exception이 발생하는 원인은 다음과 같다. Java에서는 따로 관리하는 신뢰하는 인증서 목록이 존재하는데 이 파일에 호출하는 도메인 인증서의 루트 인증서가 등록되어 있지 않을 때 발생함. 이를 해결하기 위해서는 서버 인증서를 추출 후, 클라이언트 인증서 keystore에 추가해야한다. Step1. openssl로 대상 서버에 연결 후 Base64 인코딩된 SSL 인증서를 certlog 파일에 저장한다. openssl s_client -connect mydata.ibkc.co.kr:9800 | tee certlog Step2. certlog 파일에서 인증서 부분만 추출한다. openssl x509 -inform PEM -in certlog -text -.. 2023. 3. 29.
gradle build시 다른 gradle project 참조하는 방법 /* settings.gradle */ include ':project1' project(':project1').projectDir = new File(settingsDir, '../project1') /* build.gradle */ dependencies { compile project(":project1") } 2023. 3. 9.