[TIL] jooq 잘 모르겠다 🤔
·
devlog/TIL
삽질 로그 | 2019-05-30 갑분 1 = 0 ?! conditionStep = conditionStep.and(opo.ORDER_STATUS_TYPE.in(Lists.newArrayList(request.getOrderStatusTypes()))); 이런 경우의 jooq에서는 conditionStep.and(~~~) 자체가 AND 1 = 0 로 변경되어 쿼리가 실행됨. 고로 전 후에 무수히 추가한 and 조건들이 먹지 않음. 🐸개구려 갑자기 미국날짜? String 으로 받아온 평범한 날짜입력값이 미국식 포맷으로 바뀌는 매직. conditionStep = conditionStep.and(opo.ORDER_YMDT.between(DateUtils.forceParse(request.getStartYmdt..
[TIL] Feign 404
·
devlog/TIL
TIL 궁금점 Feign으로 부르는 메소드 호출에서는 404 가 내려오면 어떻게 될까? 어떻게 처리하나? Feign 404 @FeignClient(decode404 = false) 의 경우 FeignClient annotation의 decode404 property는 false가 default 값이다. 해당 설정으로 404를 받아오는 경우에는 FeignException을 발생시킨다. Feign호출을 하였을 때 resource가 존재하지 않는 경우, 호출하는 쪽에서 404 NOT_FOUND에 대한 적절한 동작을 할 수 없게 된다. @FeignClient(decode404 = true) 의 경우 decode404를 true로 설정하는 경우, Feign의 기본 decode 메소드가 java의 기본 type들을..
[TIB] spock으로 테스트를 짜고 있는데
·
devlog/TIL
TIB = Today I Babble 일단 groovy 스크립트는 매우 생소하다. 자바같이 생겼는데.. 조금 다른것 같기도하고. spock 은 where 절 쪽 빼면 사실 간결한걸 잘 모르겠다. 내가 아마 이제 막 사용하기 시작해서 그러는 것 같다. 흠 일단 문제에 봉착한것은 이것: groovy script 에서 kotlin test class 를 사용하기. 생각보다 설정이 복잡? 한것같다. 자꾸 unable to resolve class 라고 한다. 뭐가 잘못되었는지 모르겠따. compileTestGroovy 할때 kotlin test class 경로도 잘 잡아줬는데.. 무엇이 문제일지 감도 안온다. 일단 도움은 해당 stackoverflow 포스트에서 받았는데. 해결은 뭐 안되었다. https://s..
[Hashkell] 하스켈이란? 하스켈 설치방법, 실행방법
·
devlog/programming language
하스켈 이란? 순수한 함수형 프로그래밍 언어이다. 함수형 프로그래밍 언어는 컴퓨터에게 해야하는 작업을 알려주는 것이 아닌 (명령형 프로그래밍 언어), 작업이 무엇인지를 알려주는 언어이다. 예를 들면 팩토리얼은 1부터 N까지의 숫자를 모두 곱하는 작업이라고 알려주는 것처럼, 이러한 작업들을 함수로 표현할 수 있다. 함수형 프로그래밍에서는 변수의 값을 변경할 수 없다. 그렇기 때문에, 함수가 하는 일은 주어진 작업을 계산하고 그 결과를 반환하는 일만 하면 된다. 절차형 프로그래밍 언어처럼 변수의 값을 변경할 수 없고, 함수는 결과를 반환하는 일만 하면 되므로 주어진 매개변수가 동일하다면 동일한 결과를 보장하는 특징도 가진다. (=참조 투명성) 하스켈은 느긋한 언어이다. 이것은 함수의 결과값이 표현되어야 할때..
[TIL] ExecutorService / Event Driven Programming / Bulk Insert / DiscriminatorValue / AuditingEntityListener
·
devlog/TIL
TIL = Today I Learned | 알게된 내용, 현재로서는 잘 모르겠는 내용을 적는 포스트 Event driven programming - contd 이것에 대해서 잘 모르겠다! 일단은 이 article을 봤음 https://engkimbs.tistory.com/827 ExecutorService (let's deep dive) 코드리뷰를 하다가 이런 클래스를 봤다. threadpool을 정해진 개수만큼 유지하고, concurrent programming 을 할 수 있도록 도와주는 service 인 것 같다. java.util.concurrent 패키지에 있는 것을 보고 추측함. newFixedThreadPool 이거는 정해진 thread count 만큼 pool 을 유지하고 (shared un..
It is currently in use by another Gradle instance
·
devlog/TIL
해결방법 에러로그에 찍힌 해당 .lock 파일을 직접 제거해 준다. log level을 --info로 하고 console에 살펴보면 .lock 파일의 절대경로를 알려준다. 해당 파일을 제거해주고 다시 gradle 태스크를 실행하면 정상동작 하는 것을 확인 할 수 있다. 혹시 다른 .lock 파일들도 제거하고 싶다면 다음과 같은 command로 제거하면 된다 find ~/.gradle -type f -name "*.lock" -delete 출처: 다른 .lock파일 한꺼번에 제거 -> https://stackoverflow.com/questions/21523508/it-is-currently-in-use-by-another-gradle-instance
Kotlin's Experimental features (from Kotlin Everywhere Seoul 2019 event)
·
devlog/conference
My notes from Kotlin Everywhere Seoul 2019 event Experimental Features inline class avoids extra object allocation wrapper for only one value, no mutable property Contract allows to share extra information about the function behaviors with the compiler. Why can't compiler infer such information? the inferred information... can be implicitly change can break the code provides explicit behavior fo..
brew로 openjdk 설치하는 방법
·
devlog/TIL
brew update brew tap homebrew/cask-versions brew search java brew cask install java //this downloads the latest openjdk brew cask install java8 brew cask install adoptopenjdk // adoptopenjdk is also available