본문 바로가기

내가 당면한 문제와 해결방안

(81)
jpa db config 수정 @SpringBootApplication 약 2일을 허비한 내용. 원래 우리 프로젝트는 multiple datasource 사용하고 있었다. 상황 -> 현재 남아있는 couchbaseconfiguration을 걷어내고 postgres를 적용해야한다. 문제 -> 많은 튜토리얼들은 간단한데, 나는 분명 couchbaseconfiguration을 삭제했는데도 ... default 로 설정한 DB를 springboot가 모르겠다는 거다. 해결책 -> @SpringBootApplication (exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class}) 이걸 뺏어야했던거다 ㅠ 미안하다 ~ 스프링부트야~ 제대로 사용할줄도 모르고 스프링부트는 복잡혀 어쩌고 저쩌고 했..
docker pgadmin 이미지 사용시 server connection 심어주기 docker pgadmin 연결 시 미리 server connection 물려서 띄워야 하는 일이 발생했음. 1) docker pgadmin run 할때마다 왜인지 모르겠는데 iptable 에 도커 컨테이너가 물리지? 않음. -> docker restart 로 해결 2) docker run -p 5050:80 -e "PGADMIN_DEFAULT_EAMIL=하고싶은이메일닷컴" -e "PGADMIN_DEFAULT_PASSWORD=atlas" -d 도커프라이빗레지스트리 3) 직접 도커안에서 구성을 넣어주야하므로 root로 접속해야함 docker inspect (container_id)로 환경변수 파악 원래하던데로 /bin/bash로 하니 안되더라구 4) docker exec -u root -it (contai..
3x3x3 큐브
centos 에서 jstat으로 elasticsearch 모니터링하기 0 일단 설치부터. 설치하려면 java version 확인. 버전은 또 어뜨케 확인햐 ~ yum install java-1.8.0-openjdk-devel 이렇게 설치할수도있고. 근데 나는 java -version 으로 확인하니 설치되어있기 때문에. 그것으로 하기로. 혹시 몰라 sudo alternatives --config java 로 이미 설치된 다른 버전들이 더 있나 확인하였음. 1 이제 centos 에 JAVA_HOME을 set 해줘야지 작업중 참고 https://dumdildor.tistory.com/10 https://unix.stackexchange.com/questions/282313/how-to-verify-if-java-is-installed-on-rhel https://computin..
elasticsearch ngram existing index 에설정 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#update-settings-analysis Update index settings API | Elasticsearch Reference [7.5] | Elastic For example, the update settings API can be used to dynamically change the index from being more performant for bulk indexing, and then move it to more real time indexing state. Before the bulk indexing is starte..
파이썬으로 멀티쓰레드 어케하냐 마-! https://stackoverflow.com/questions/2846653/how-can-i-use-threading-in-python How can I use threading in Python? I am trying to understand threading in Python. I've looked at the documentation and examples, but quite frankly, many examples are overly sophisticated and I'm having trouble understanding them. H... stackoverflow.com 제대로 된 질문에는 스택오버플로우 신께서 응답하심
elasticsearch6.7 index 만들기 with mapping + reindex + alias https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#mappings Create index API | Elasticsearch Reference [7.5] | Elastic Before 7.0.0, the mappings definition used to include a type name. Although specifying types in requests is now deprecated, a type can still be provided if the request parameter include_type_name is set. For more details, please see Removal..
python find element in dictionary list using key value https://stackoverflow.com/a/8653568/10194999 Python list of dictionaries search Assume I have this: [ {"name": "Tom", "age": 10}, {"name": "Mark", "age": 5}, {"name": "Pam", "age": 7} ] and by searching "Pam" as name, I want to retrieve the related dictionary: {name: "Pam", ... stackoverflow.com dicts = [ { "name": "Tom", "age": 10 }, { "name": "Mark", "age": 5 }, { "name": "Pam", "age": 7 }, { ..