전체 글221 biggint칼럼으로 시퀀스를 쓸때 초기화하는 명령어? 어차피 이름있는 시퀀스이다. 테이블을 살펴보면 이름을 알 수 있다. select * from aiops_auth_info_auth_id_seq select currval('aiops_auth_info_auth_id_seq'::regclass) select setval('aiops_auth_info_auth_id_seq'::regclass,5) 이런 명령어들이 먹힌다. https://dbrang.tistory.com/784 [PGS9.2] Sequence 활용하기 /******************************************************************************************** -- Title : [PGS9.2] Sequence 활용하기 -- Refere.. 2020. 2. 13. postgres에서 select 사용시 바로 json으로 받아오기 https://blog.gaerae.com/2015/09/postgresql-multiple-rows-and-json-or-string.html PostgreSQL: 다중 행을 하나의 문자열 또는 JSON 타입으로 만들기 블로그와 SNS에서 주기적으로 기술 정보를 찾고 분류하여 가치를 더해 공유합니다. blog.gaerae.com 2020. 2. 13. 쿼리스트링 값을 if문(test)에서 사용하는 방법 _parameter를 사용하는 걸 설명하고 있는데 내가 아는 value를 쓰는 것이나 완전히 같은 방법이다.근데 쿼리스트링 값을 한개가 아니라 두개나 세개를 적용할 때는 어떻게 사용할 수 있을까? SELECT menu_name, use, menu_type FROM aiops_menu_info WHERE menu_type = #{menuType} ORDER BY menu_id https://thswave.github.io/spring/2015/06/18/mybatis-test-string-parameter.htmlmybatis string parameter를 if문(test)에서 사용하는 방법June 18th, 2015 mybatis로 개발하면서 알게 된 팁을 공유하고자 합니다. 주의: ibatis와 동작.. 2020. 2. 13. @JsonPropertyOrder({"name", "id"})를 사용하면 성능이 느려질까? 난 아직 모름.. http://blog.naver.com/PostView.nhn?blogId=swcho0000&logNo=220390371788&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView jackson : jackson json parser 쓸 때 field ordering 자바에서는 json parser 로 jackson 을 많이 쓰네요. (라기 보단 이젠 논란없이 그냥 이것만 쓰는듯.)제목... blog.naver.com 2020. 2. 4. bamboo 빌드에 서버가 종료되지않아서 실패하거나 지연되면 정상적으로 되살리는 방법 kill -9 {aiops의 pid번호} 한후에 sh start.sh 해놓고 뱀부에서 빌드를 다시하면 산다.(아마도 뱀부에서 파이썬 모듈도 다시 끄고 키는 듯) 2020. 2. 4. deserialize와 serialize시에 사용할 VO의 필드를 각각 다르게 정해서 사용하기위한 애너테이션 @JsonIgnoreProperties(value={ "module_name" }, allowSetters= true) 해당 에너테이션의 value에 적는 필드는 기본적으로 deserialize, seriallize 둘다에서 제외된다. 이렇게 제외할 것을 기반으로 그 다음에야 허용할 것을 선택하기 위해서 옵션으로 allowSetter나 allowGetter를 작성한다. https://www.concretepage.com/jackson-api/jackson-jsonignore-jsonignoreproperties-and-jsonignoretype#allowGetters Jackson @JsonIgnore, @JsonIgnoreProperties and @JsonIgnoreType This page will.. 2020. 2. 4. Mybatis에서 파라미터가 null면 where절 무시하고, 값이 있으면 where절을 적용하는 쿼리를 만들때 NullPointerException이 발생한다면? 꼭 점검해야할 것 Q int 에는 null 값이 들어갈 수 없는데 Integer 에는 null 값이 들어갈 수 있는 이유는 뭔가요? A int 는 원시유형의 변수고 Integer 레퍼런스는 객체이기 때문입니다. 인터넷 검색중에 이 글을 보고 나서 VO의 필드나 Mapper의 파라미터에 Interger가 아니라 int를 기입해놓고 시도를 한 것을 한눈에 파악하였다. 기본적인 지식을 점차 잊어 가고 있었기 때문에 시간낭비만 한 것이다. 2020. 1. 30. Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project demo-inflearn-rest-api: There are test failures. https://fors.tistory.com/386 스프링부트 springboot mvn build test error 에러 해결 관련 글의 stackoverflow 링크 https://stackoverflow.com/questions/13170860/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-10test 링크를 타고 들어가면 다양한 답변이 나온다. 그.. fors.tistory.com org.apache.maven.plugins maven-surefire-plugin 2.19.1 true 추가한다. 2020. 1. 16. 인텔리제이에서 .gitignore 파일 관리하는 플러그인 https://gbsb.tistory.com/409 Intellij에서 Git 연동하기(.gitignore 플러그인) Intellij에서 해당 프로젝트의 버전 관리를 위해 Git을 연동하고, 프로젝트를 GitHub 저장소로 push 하는 과정을 설명하려고 한다. 1. Git 설치 https://git-scm.com/에 들어가서 Git을 설치한다. 기본 설정 그대.. gbsb.tistory.com 2020. 1. 14. 정규식 예제 좋은 곳 + 정규식 테스트 사이트 https://www.ibm.com/support/knowledgecenter/ko/SSAE9L_4.0.1/com.ibm.content.collector.doc_kc/expression_editor/r_afu_regular_expression_samples.html IBM Knowledge Center Please note that DISQUS operates this forum. When you sign in to comment, IBM will provide your email, first name and last name to DISQUS. That information, along with your comments, will be governed by DISQUS’ privacy policy. B.. 2020. 1. 13. 이전 1 ··· 11 12 13 14 15 16 17 ··· 23 다음