목록전체 글 (21)
NOT FOUND
nssm start [server] 실행시 해당 에러가 났다. 1. sc query [server] 위 명령어를 실행후 출력값에서 STATE가 PAUSED로 표시되면 서비스가 정상적으로 실행되지 않았다는 의미이다.2. jar 파일이 올바르게 생성되었는지 확인한다.3. nssm stop custom-servernssm start custom-server서비스를 다시 멈췄다 시작한다. jar 파일이 올바르지 않을 확률이 크다.
더보기org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failedat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:515) ~[spring-beans-6.2...

에러 문구Unable to render this definitionThe provided definition does not specify a valid version field.Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0). 에러 사진 에러 원인우선 저는 @RestControllerAdvice와 @ExceptionHandler 때문이었습니다.다른 원인일 경우도 있는데http://localhost:8080/v3/api-docs해당 URL에 접속했을 때 ..
h2에서 'user'는 예약어입니다users로 바꾸시면 됩니다
빌더에서 특정 필드를 재정의하는 걸 원했다 public static class ABuilder { public ABuilder owner(String owner) { this.isOwner = Objects.equals(owner, "소유자"); return this; } public ABuilder landShare(String share) { this.isOwner = Objects.equals(share, "공유"); return this; }} A class라고 쳤을 때 클래스 안에 이런식으로 ABuilder을 적고 아래 원하는 필드만 재정의해주면 된다

if(row.getCell(startCell)==null) continue; 보통 엑셀의 마지막을worksheet.getPhysicalNumberOfRows()이렇게 확인한다.그런데 엑셀에서 이런식으로 색칠이 되어있거나 선이 있을 경우 저 row값이 그 디자인까지 쳐진다 if(row.getCell(1)==null) continue;그래서 이처럼 셀이 비어있는지 검사를 해야한다
엑셀에 1/1값을 입력하고 가져와야 하는 상황이 생겼다 그런데 엑셀에서 1/1을 입력하면 자동으로 date라고 인식되고, 가져올때도 number로 가져와진다.예를 들어나는 1/1을 입력한 게 45658.0로 가져와졌다. ㅜㅜ.... 두가지 방법이 있다애초에 엑셀을 넣을 때 엑셀에서 1/1을 '텍스트'로 설정해서 넣는 방법 하나는 엑셀이 날짜로 인식했을 경우 내 쪽에서 1/1로 변환해서 넣는 방법... 그런데 사실 1/1말고도 1/2 1/3 1/4등 다양한 숫자가 입력될 수 있어서 참 애매했다 그렇다고 1번 방법만 믿고 가기에도 불안했다 1. 우선 기획자분한테 텍스트가 입력되어야 한다는 사실 알리기2. 숫자로 들어왔을 경우 (날짜로 된 부분 잘라서 오기) 이렇게 해결하려고 한당 하 엑셀아...// 1/1..
배포된 환경이 HTTPS를 사용해야 한다면, http:// 대신 https://를 사용해 요청을 보내는 것이 필요할 수 있습니다. Swagger가 HTTPS로 실행되고 있다면 @OpenAPIDefinition( servers = { @Server(url = "https://개발서버.com", description = "개발 서버"), @Server(url = "http://localhost:8080", description = "로컬 서버") })