Research/Programming28 Java Spring WebClient를 사용하여 공공데이터 API사용시 Encoding 문제 공공데이터 API를 사용할 때, WebClient 나 RestTemplate class에 Decoding된 Service Key를 사용하면 " SERVICE KEY IS NOT REGISTERED ERROR"가 발생한다. 원인은 정확히는 모르겠지만 Decoding된 Service Key가 Encoding된 후의 값을 실제 비교해 보면 등록된 Service Key 인코딩 키값과 일지하지 않는 거 같다.그래서 방법을 찾던 중에 에러가 발생하지 않는 방법은 아래와 같이 Encoding된 Service Key를 사용하고 WebClient에서 encoding하지 않도록 하는 방법이다.public StockInfoDTO getStockInfoWebClient(String name) { String baseUr.. 2025. 6. 9. Failed to resolve: com.tickaroo.tikxml:annotation:0.8.15 Kotlin으로 data class를 만들었으나 annotation 에러가 발생한다.dependencies { ... //retrofit2 implementation("com.squareup.retrofit2:retrofit:2.9.0") implementation("com.tickaroo.tikxml:annotation:0.8.15") implementation("com.tickaroo.tikxml:core:0.8.15") implementation("com.tickaroo.tikxml:retrofit-converter:0.8.15") annotationProcessor("com.tickaroo.tikxml:processor:0.8.15") kapt("com... 2024. 10. 30. Deploy a Google Apps Script as a web app with a same URL on each deploy. 구글 앱스 스크립트를 웹앱으로 작성하면 아래와 같은 형식으로 앱 URL이 생성된다.https://script.google.com/macros/s/${DEPLOYMENT_ID}/exec테스트 배포의 경우에는 마지막 exec가 dev이고 URL은 변경되지 않지만 테스트 배포가 아닌 경우에는 아래 배포 메뉴에서 새 배포로 하게 되면 DEPLOYMENT_ID가 계속 바뀌게 된다. 이렇게 되면 변경된 URL로 웹앱을 실행시켜야 하는 번거로움이 발생된다. 따라서, 변경되지 않는 URL로 계속 배포를 하고 싶은 경우 아래의 방법대로 하면 동일한 URL로 배포를 할 수 있다. 2024. 10. 22. *.java를 빌드해서 실행가능한 *.jar를 만드는 법 1. 아래와 같은 내용으로 HelloWorld.java 라는 파일을 만든다. class HelloWorld { public static void main(String[] args) { System.out.println("HelloWorld!"); } } 2. javac HelloWorld.java 문제가 없으면 HelloWorld.class 라는 파일이 생성됨. 3. javac cfe helloworld.jar HelloWorld HelloWorld.class helloworld.jar 파일이 생성되고 java -jar helloworld.jar를 실행하면 HelloWorld! 라고 출력이 됨. javac cfe 2023. 9. 21. /bin/sh: 1: Syntax error: Bad fd number 컴파일을 하다 보니 아래와 같은 메시지가 나오면서 안됨. /bin/sh: 1: Syntax error: Bad fd number 찾아보니 아래와 같이 하면 된다고 하는데.... sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh /bin/sh는 아래와 같이 dash의 소프트 링크이다. sunny@ubuntu:/$ ll /bin/shlrwxrwxrwx 1 root root 4 Dec 26 02:21 /bin/sh -> dash* 2013. 1. 19. cross compile configure시에 build, host, target option build는 현재 플랫폼host는 설치될 플랫폼target은 실행될 플랫폼을 말한다... 따라서, host와 target은 같다고 보면 됨. 2012. 10. 29. 이전 1 2 3 4 5 다음