skill 88

MAC .jmx 실행 및 요약보고서 Error 확인 방법 - jmeter (성능테스트)

일단 jmeter 설치 $brew install jmeter jmeter 실행 : 콘솔에 jmeter 입력 하면 프로그램 열림 $jmeter 실행 하려는 .jmx 파일 열기. 테스트 실행 후 결과는 ‘요약 보고서’ 확인! 요약 보고서의 Error 를 확인 하고 싶을 때는 요약 보고서 폴더에서 우클릭 > Add > Listener > View Results Tree 클릭 요약 보고서 밑의 View Results Tree 확인 : 빨간색 에러 결과 확인! View Results Tree 에러만 보고 싶을 때는 표 상단 Log/Display Only : Error 체크

skill/Etc 2023.03.30

[Kotlin] 브라우져 뒤로가기 버튼 클릭 시, ERR_CACHE_MISS 약식을 다시 제출 하시겠습니까?

뒤로가기 버튼 클릭 시, 양식을 다시 제출하시겠습니까? 오류 발생 HttpSecurity의 http.headers().cacheControl().disable() 넣으면 해결! @Throws(Exception::class) override fun configure(http: HttpSecurity) { http.headers().cacheControl().disable() // ERR_CACHE_MISS 해결 http.csrf().disable() } 전체 소스 import org.springframework.context.annotation.Configuration import java.lang.Exception import org.springframework.security.config.annotat..

[Error] ClassNotFoundException: org.apache.http.impl.client.HttpClients

Springframework 의 RestTemplate 이용 하여, http 통신 구성 시 , public static ResponseEntity send(String url, HttpMethod method, HttpHeaders header, Map params, Class responseType) { HttpComponentsClientHttpRequestFactory httpFactory = new HttpComponentsClientHttpRequestFactory(); httpFactory.setConnectTimeout(5*1000); httpFactory.setReadTimeout(5*1000); RestTemplate restTemplate = new RestTemplate(httpFac..

skill/Java.Kotlin 2023.02.22

Springboot request param VO class로 받을 시, 필수 값 null일 경우 exception handler 처리

Springboot request param VO class로 받을 시, 필수 값 null일 경우 exception handler 처리 RestController @RequestMapping("/test") @RestController public class TestController { @GetMapping(value = "/t1") public Map t1( @Validated ReqVo req) { Request Param VO import lombok.Data; import javax.validation.constraints.NotNull; @Data public class ReqVo{ /** * 필수코드 @NotNull 선언 */ @NotNull String code_type; Exception..

skill/Java.Kotlin 2023.02.01

Springboot @RequestParam null 일 경우, exception handler 처리

springboot restcontroller requestparam 설정 @GetMapping(value = "/test") public Map accounts( @RequestParam(value = "code") String code, @RequestParam(value = "page" , required = false, defaultValue = "0") int page, @RequestParam Map req) throws Exception { @RequestParam 필수값 exception handler 잘못된 예 @ControllerAdvice @RestController public class ResponseExceptionHandler extends ResponseEntityExcept..

skill/Java.Kotlin 2023.01.31

git 생성, intelliJ Project 생성 후 연동

1. git hub에서 repository 추가 New > Create a new repository 에서 Repository name 추가 후 'Create repository' 버튼 클릭 2. IntelliJ Project 생성 Welcome to IntelliJ IDEA > New Project (기본 : Spring , Gradle, log4j, jpa, mysql 연동) 좌측 Spring Initializr 클릭 > - Name : project 명 (편하게 repository 명과 동일) - Location 지정 : ~/path/project 명 - Type : Gradle-Groovy - Group : com.test.api (package명) - Artifact: project 명 - Pa..

skill/Git 2023.01.30

Gradle sync failed: No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found Error

-- gradle build error A problem occurred configuring root project 'test-project'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.2. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.2 -- gralde sync Gradle sync failed: No matching variant of org.springframework.boo..

skill/Etc 2023.01.30

AWS 서버 Jenkins pipeline 연결 시, codedeploy-agent 설치 및 IAM 연동

[CodeDeploy error] : ApplicationStop : [error] CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. + 배포되는 서버에 CodeDeploy 에이전트가 실행 중인 지 확인 $ sudo service codedeploy-agent status (비정상) Redirecting to /bin/systemctl status codedeploy-agent.service (정상) The AWS CodeDepl..

skill/Linux 2022.06.16