전체 글목록499 [springboot] 서버 시작시 Error creating bean with name '***' defined in class path resource 해결법 Error creating bean with name 'reactiveMongoDatabaseFactory' defined in class path resource org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reactiveMongoDatabaseFactory' defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfiguration.class]: Post-processing of merged bean definition failed; nested except.. Web/SpringBoot 2019. 8. 28. [spring] produces 반환하는 content-type 을 지정. 생략하면 어느타입 (*/*)이나 지원을 의미 예) text/plain 으로 produces를 정의하면 해당요청으로만 가능 이걸로 오버로드가 가능함 매핑 된 요청의 생성 가능한 미디어 유형으로 기본 매핑이 좁아집니다. 형식은 단일 미디어 유형 또는 일련의 미디어 유형이며, 수락이 이러한 미디어 유형 중 하나와 일치하는 경우에만 요청이 매핑됩니다. 3. @RequestMapping 이 사용하는 속성 이름 타입 설명 value String[] URL 값으로 매핑 조건을 부여 (default) method RequetMethod[] HTTP Request 메소드 값을 매핑 조건으로 부여 사용 가능한 메소드는 GET, POST, HEAD, OPTIONS, PUT, DEL.. Web/SpringBoot 2019. 8. 13. [Docker] Container 에 Timezone 설정 하기. 혹시 Oracle 을 사용하다가 아래와 같은 에러를 본 적이 있는가? ORA-01882: timezone region not found while connecting to Oracle 위 와 같은 에러가 발생 한 이유는 간단한다. Oracle이 설치 되어 있는 타임존과 Oracle에 접속하고자 하는 타임존이 다른 경우 발생 한다. Docker 같은 경우 기본적으로 UTC로 타임존이 지정 된다. 따라서 별도로 지정 하지 않으면 문제가 없지만, 만약 Oracle은 KST 인데 Tomcat은 UTC 일 경우 위와 같은 에러가 계속 발생하게 된다. 그럼... 어떻게 하면 되냐? 내가 여러 조사를 해본 결과 Docker를 다시 run 시키는게 가장 좋아 보였다. 먼저 Ubuntu에 /etc/localtime로 링.. SERVER/DOCKER 도커 2019. 8. 2. [DOCKER]도커 컴포즈를 활용하여 완벽한 개발 환경 구성하기 개발목표 - 개발, 운영 서버에서 서버별로 코드를 다르게 유지해야 할게 있었음. 해결방안 - docker 에 마이크로서비스로 되어있고, 쿠버네티스를 통해서 배포작업을 하고 있다. 여러가지 고민을 했었는데, 가장 쉬운건 git branch 별로 코드 수정을 해두는 거고, 다만 이러면 안정성이 떨어짐. 그래서 찾은방법은 쿠버네티스에서 도커를 실행할때, 도커 파일을 서버에 맞게 실행 개발서버 - \cp -f Dockerfile-stg-hfix Dockerfile - docker build --pull -t $COMMIT_IMAGE_TAG . 운영서버 - docker build --pull -t $COMMIT_IMAGE_TAG . 이런식으로 도커파일을 두개만들어서 도커 이미지를 서버에 맞게 복사, 생성 Dock.. SERVER/DOCKER 도커 2019. 8. 1. gitlab 에서 개발서버, 운영서버 코드 다르게 유지 하는 방법 약간의 꼼수인데.. 이건 테스트해보면서도 되는데 왜 이렇게 작동하는지는 모르겟다. dev, prd 브랜치가 있으면 dev 에 코드 수정 후 커밋, prd로 전환하여 같은 방식으로 수정 -> 이러면 dev 를 prd로 merge를 하면 덮어씌워 지지 않은데 역작업은 안된다. 신기하다... 왜이러지 .. 개발ETC/GIT 2019. 8. 1. Jersey: A message body writer for Java Class and MIME mediatype application/json was not found Jersey: A message body writer for Java Class and MIME mediatype application/json was not found Jersey: A message body writer for Java Class and MIME mediatype application/json was not found after trying to figure out what's my problem I finally decided to ask you how to solve my problem. I've seen different people with the same problem and I tried all the things they were adviced to d... stackov.. Web/SpringBoot 2019. 8. 1. 스프링 <context:component-scan> 분석 http://thswave.github.io/spring/2015/02/02/spring-mvc-annotaion.html Web/스프링 2019. 5. 7. kettle_spoon REST API 호출하여 mongo 저장 우선 동영상 참조해서 시작함. https://www.youtube.com/watch?v=3FNWtmtHOE4 https://www.youtube.com/watch?v=N4K8Sa4uHUk 기본적으로 바로 Rest client 로 사용하면 안되는것같다. 동영상을 참조해서 와꾸 짜고, 변수는 자바스크립트로 해결 http://rpbouman.blogspot.com/2009/11/pentaho-data-integration-javascript.html Pentaho Data Integration: Javascript Step Performance I just read a post from Vincent Teyssier on cleaning strings using the javascript capabilitie.. DB/Kettle_pentaho_spoon 2019. 5. 7. Mybatis Java Configuration for springboot ( mapper 사용 안하고) https://m.blog.naver.com/PostView.nhn?blogId=moonv11&logNo=220450831876&proxyReferer=https%3A%2F%2Fwww.google.com%2F Mybatis Java Configuration 하도 삽질을 해서 정리해보았다. 굵은 글씨 부분에서 고생을 하였으니 염두하면서 보자. package com.moonv... blog.naver.com http://longbe00.blogspot.com/2015/03/mybatis-java-config.html Mybatis java config 설정 MyBatisContext.java - mapper 스캔처리 - SqlSessionTemplate 설정 - 기타 설정 처리 package com.exam.. Web/SpringBoot 2019. 4. 10. Access a File from the Classpath in a Spring Application Access a File from the Classpath in a Spring Application https://www.baeldung.com/spring-classpath-file-access Access a File from the Classpath using Spring | Baeldung Learn how to easily open and read a file on the classpath using Spring's Resource API www.baeldung.com I just announced the new Learn Spring course, focused on the fundamentals of Spring 5 and Spring Boot 2: >> CHECK OUT THE COURS.. Web/SpringBoot 2019. 4. 10. [mssql] 조건절 like 검색 조건 ( escape 특수문자 와일드 카드 검색) https://ggmouse.tistory.com/131 [DB_MSSQL] 조건절 LIKE 검색 조건 (ESCAPE 특수문자 와일드 카드 (예약어) 검색) WHERE LIKE 에서 사용하는 검색 조건에 대해 알아보자 SELECT 컬럼명 FROM 테이블명 WHERE 컬럼명 LIKE 'A%' SELECT 컬럼명 FROM 테이블명 WHERE 컬럼명 LIKE '%A%' SELECT 컬럼명 FROM 테이블명 WHERE 컬럼명 LIK.. ggmouse.tistory.com 필요했던건, %[ ]% 이거엿음 DB/MSSQL 2019. 4. 9. Spring Boot - Apache Kafka 카프카 연동 https://www.tutorialspoint.com/spring_boot/spring_boot_apache_kafka.htm Spring Boot Apache Kafka Spring Boot - Apache Kafka Advertisements Apache Kafka is an open source project used to publish and subscribe the messages based on the fault-tolerant messaging system. It is fast, scalable and distributed by design. If you are a beginner to Kafka, or wan www.tutorialspoint.com 목표 : 카프카 configuratio.. Web/SpringBoot 2019. 3. 29. 이전 1 ··· 15 16 17 18 19 20 21 ··· 42 다음