일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- jsonignore
- bytebuddyinterceptor
- websecurityconfiguration
- springboot
- java.lang.nosuchmethoderror
- Swagger
- Today
- Total
목록spring boot (7)
NOT FOUND
@JsonIgnore@OneToOne(fetch = FetchType.LAZY)private LandRecord landRecord;@JsonIgnore@ManyToOne(fetch = FetchType.LAZY)private Organization organization; FetchType.LAZY 사용시 json으로 변환이 안 되어서 생기는 문제로, @JsonIgnore을 붙여주면 해결된다. import com.fasterxml.jackson.annotation.JsonIgnore;
더보기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에 접속했을 때 ..
배포된 환경이 HTTPS를 사용해야 한다면, http:// 대신 https://를 사용해 요청을 보내는 것이 필요할 수 있습니다. Swagger가 HTTPS로 실행되고 있다면 @OpenAPIDefinition( servers = { @Server(url = "https://개발서버.com", description = "개발 서버"), @Server(url = "http://localhost:8080", description = "로컬 서버") })
The HTTP response header [Content-Disposition] with value [attachment; filename="과제 제출.zip"] has been removed from the response because it is invalid java.lang.IllegalArgumentException: The Unicode character [과] at code point [44,284] cannot be encoded as it is outside the permitted range of 0 to 255 zip 파일 다운로드 중 StreamUtils.copy(fis, zipOut); 부분에서 에러가 발생했다. response 헤더 부분에서 한글을 사용해서 나는 에러였다. (..
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "category" is null 만약 category 값이 null일 경우 아래와같이 비교하면 NPE가 발생한다.String이 아니기 때문에 equals 함수가 존재하지 않아서 그렇다.category.equals("ALL") 순서를 변경해주면 손쉽게 해결 가능하다."TEST".equals(category)