본문 바로가기
728x90

Kotlin Spring15

org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property 'spring.profiles.active' imported from location 'class path resource [application-dev.yml]' is invalid in a profile specific resource [origin: class path resource [applic org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property 'spring.profiles.active' imported from location 'class path resource [application-dev.yml]' is invalid in a profile specific resource [origin: class path resource [application-dev.yml] 와 같은 오류는!!스프링 부트 2.4 이전에는 profiles 에 구분자를 추가하고 applicatioin.yml 등의 default profiles 에 "-" 로 구분 되는 yml 파일로 사용이 가능했다 예) applicatio.. 2024. 12. 9.
Kotlin Spring Boot docker file 빌드 배포 kotlin spring boot 로 개발하면서 jar 로만 배포하는 개발자들이 아직도 있어서 글을 작성! 이제는 docker 를 써야할때!!아래와 같이 프로젝트 내 dockerfile 을 생성한다. FROM azul/zulu-openjdk-alpine:17 as builderCOPY build.gradle settings.gradle gradlew ./COPY ./gradle ./gradleCOPY ./src ./srcRUN chmod +x ./gradlewRUN ./gradlew clean bootJarFROM azul/zulu-openjdk-alpine:17-jreCOPY --from=builder /build/libs/*.jar /app.jarEXPOSE 8080ENTRYPOINT ["java",.. 2024. 12. 5.
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref : "/settings.gradle.kts": not found 도커를 사용하다가 빌드 시 아래와 같은 오류가 났다면!! ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref : "/settings.gradle.kts": not found 방법은 간단하다! 해당 파일이 없다는 뜻이며, 오류가 난부분이 copy 영역이면 확장자까지 고려하여 동일한 파일이 있는지 확인필요! 끝.. 2024. 12. 5.
코루틴에 대해서 ( about " Coroutine ") 코틀린 스프링에 적용하는 코루틴에 대해서 얼마만큼 알고 있는가?기본적인 내용을 간략 하게 정리해 보겠다. 코루틴!범 코틀린 라이브러리 중 하나이며, async, await, future, promise, actor 등을 이용하여 동시성 지원이 가능하다.추가로, 아래와 같은 동서성문제를 해결하는 기능들을 제공한다. 1. thread 의 가벼운 대안2. 유연한 thread dispatch3. 일시중단이 가능한 sequence와 iterator4. Channel 을 사용한 메모리 공유5. actor 를 통한 message 전송방식 지원 Java web mvc 기반을 고려하면(web flux 아님), 대부분의 동시성 연산이 블로킹(blocking) 처리된다.thread 를 블로킹 후 다시 실행을 이어가려면, c.. 2024. 12. 3.
Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback. There was an unexpected error (type=Not Found, status=404) graphql expediagroup 해결하기 Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback. There was an unexpected error (type=Not Found, status=404) 라는 오류 본적이 있는가?(흔하게 봤을 것이다.)일반적인 경우는 쉽게 해결가능하다(말그대로 default page 든 아무것도 없기 때문이다.) 하지만, graphql 을 사용하는데, 제대로 세팅한거 같은데 위와 같은 오류가 발생할 경우!???이를 해결하기 위한 자료가 부족하기 때문에, 꼭 필요한 사람을 위해 글 작성을 해본다.  위와 같은 오류가 뜨는데, 여러가지 원인이 있겠지만,일반 SpringMVC.. 2024. 11. 29.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schema' defined in class path resource [com/expediagroup/graphql/server/spring/NonFederatedSchemaAutoConfiguration.class]: Failed to instantiate [graphql.schema.GraphQ 제목과 같은 오류 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schema' defined in class path resource [com/expediagroup/graphql/server/spring/NonFederatedSchemaAutoConfiguration.class]: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'schema' threw exception with message: Invalid query object type - no valid queries are available. 가 뜬다면!!?!.. 2024. 11. 28.
728x90