728x90

Dev/Spring.SpringBoot 15

[Mybatis] Oracle CLOB 데이터 조회

target: mybatis에서 CLOB 데이터를 조회한 후 String으로 변환 method: ▶ 같이 보면 좋을 내용 https://pu3vig.tistory.com/119 [Oracle] Oracle 데이터를 Json 형태로 변환 [오라클 12c 이상] target: Oracle 데이터를 Json 형태로 변환 method: 1. JSON_OBJECT [Oracle 12c release 2(12.1.0.2) 이상] /* - 테이블 명 : TB_COL - 데이터 형식 > SELECT SEQ, ID, NAME, TYPE FROM TB_COL; >> Result SEQ | ID | NAME | TYPE 1 | COL1 | 컬럼1 | pu3vig.tistory.com https://pu3vig.tistory..

[Mybatis] SelectKey (Feat. SEQUENCE)

target: Mybatis SelectKey 사용 method: Mybatis의 구문 안에 를 사용하여, 구문 시작 전/후에 사용 INSERT INTO BBS ( SEQ , NTT_SJ , NTT_CN ) VALUES ( #{SEQ_VAL} , #{NTT_SJ} , #{NTT_CN} ) SELECT NVL(MAX(SEQ), 0) + 1 AS SEQ_VAL FROM BBS source: https://yn971106.tistory.com/108 [Oracle]SelectKey_사용하기 (feat. SEQUENCE) 구조 : Oracle DB framework: Mybatis 목적 : SEQUENCE 로 증가되는 PK 를 가진 테이블의 INSERT 후 증가된 PK 가져오기 이유 : 글 작성 table 과 ..

[SpringBoot] [Inflearn - 무료] 스프링부트 시큐리티 & JWT 강의 (Section 3)

target: 스프링부트 시큐리티 & JWT 강의 17 ~ 27강 (섹션 3. 스프링 시큐리티 JWT 서버구축) method: 이전 Section 2. 스프링 시큐리티 웹 보안 이해 https://pu3vig.tistory.com/111 * Section 3. 스프링 시큐리티 JWT 서버구축 ★ Section 3. 최신버전 업데이트 github 주소 https://github.com/codingspecialist/Springboot-Security-JWT-Easy/tree/version2 GitHub - codingspecialist/Springboot-Security-JWT-Easy Contribute to codingspecialist/Springboot-Security-JWT-Easy develop..

[SpringBoot] [Inflearn - 무료] 스프링부트 시큐리티 & JWT 강의 (Section 2)

target: 스프링부트 시큐리티 & JWT 강의 12 ~ 16강 (섹션 2. 스프링 시큐리티 웹 보안 이해) method: 이전 Section 1. 스프링 시큐리티 OAuth2.0 https://pu3vig.tistory.com/110 * Section 2. 스프링 시큐리티 웹 보안 이해 12. 스프링부트 시큐리티 12강 - JWT를 이해하기전 세션에 대해 알아보자 ★ 왜 사용되나? ★ 어디에 사용되나? - 클라이언트의 최초 요청이 서버에 도달했을 때, 서버는 리소스를 반환하면서 header에 세션 ID를 추가하여 반환 - 클라이언트는 이후 요청 시, 세션 ID를 가지고 요청 - 서버는 세션 ID 목록을 보유하고, 클라이언트가 요청 시, request header에 있는 세션 ID와 대조 - 아래 3가..

[SpringBoot] [Inflearn - 무료] 스프링부트 시큐리티 & JWT 강의 (Section 1)

target: 스프링부트 시큐리티 & JWT 강의 6 ~ 11강 (섹션 1. 스프링 시큐리티 OAuth2.0) method: *시작 전 섹션0~섹션1 최신버전 업데이트 github 주소 (강사님 github 주소) https://github.com/codingspecialist (스프링 시큐리티 기본 V1) https://github.com/codingspecialist/Sringboot-Security-Basic-V1 (구버전) 스프링부트 2.3.2 자바 1.8 https://github.com/codingspecialist/Springboot-Security-OAuth2.0-V2 (신버전) 스프링부트 2.5.7 자바 11 https://github.com/codingspecialist/-Springb..

[SpringBoot] [Inflearn - 무료] 스프링부트 시큐리티 & JWT 강의 (Section 0)

target: 스프링부트 시큐리티 & JWT 강의 1 ~ 5강 (섹션 0. 스프링 시큐리티 기본) method: *시작 전 섹션0~섹션1 최신버전 업데이트 github 주소 (강사님 github 주소) https://github.com/codingspecialist (스프링 시큐리티 기본 V1) https://github.com/codingspecialist/Sringboot-Security-Basic-V1 (구버전) 스프링부트 2.3.2 자바 1.8 https://github.com/codingspecialist/Springboot-Security-OAuth2.0-V2 (신버전) 스프링부트 2.5.7 자바 11 https://github.com/codingspecialist/-Springboot-Sec..

[SpringBoot] [Inflearn - 무료] 스프링부트 개념정리(이론)

target: 스프링부트 개념정리 1 ~ 14강(완) method: 1. 스프링이란? 더보기 Framework(어느정도 정해진 개발 틀 제공) Free Open Source(커스터마이징 가능) *Inversion of Control(IoC: 제어의 역전) 컨테이너 보유 *Dependency Injection(DI: 의존성 주입) 지원 *Filter를 보유 *Annotation을 보유 *MessageConverter를 보유(Default: Json) *BufferedReader / BufferedWriter를 쉽게 사용 가능 지속 발전 가능 ※ IoC(Inversion of Control) - Abstract Class(추상적인 개념) -> Class(논리적인 개념: 설계도면) -> Object(객체: 설..

[DataSource] BasicDataSource Configuration Parameters 정보

https://commons.apache.org/proper/commons-dbcp/configuration.html DBCP – BasicDataSource Configuration BasicDataSource Configuration Parameters Parameter Description username The connection user name to be passed to our JDBC driver to establish a connection. password The connection password to be passed to our JDBC driver to establish a connection. url The commons.apache.org Apache DBCP 설정 공식 문서

JDBC Internal - 타임아웃의 이해

아래 내용은 2011.12.23 작성하신 원작자님의 설명 글을 그대로 옮겼습니다. source: https://d2.naver.com/helloworld/1321 성능 문제나 장애가 발생할 때 중요하게 살펴보는 부분(tier)은 WAS(Web Application Server)와 DBMS입니다. 대부분의 경우에 WAS를 담당하는 조직과 DBMS를 담당하는 조직이 달라, 각자 담당 분야를 중심으로 상황을 파악하려 합니다. 이때 상대적으로 관심을 못 받는 사각지대가 생기는데, 바로 WAS와 DBMS 사이입니다. Java 애플리케이션을 기준으로 말하면 DBCP와 JDBC입니다. 이 글에서는 JDBC의 타임아웃 설정을 중심으로 장애에 대응하는 방법을 설명하겠습니다. 어느 날 DDoS 공격, 그 뒤로 먹통이 된 ..

[DBCP] Commons DBCP 이해하기 (Common-dbcp, dbcp2)

아래 내용은 2015.10.21 작성하신 원작자님의 설명 글을 그대로 옮겼습니다. (이에 본문에 광고는 넣지 않습니다.) source : https://d2.naver.com/helloworld/5102792 Commons DBCP 이해하기 데이터베이스와 애플리케이션을 효율적으로 연결하는 커넥션 풀(connection pool) 라이브러리는 웹 애플리케이션에서 필수 요소입니다. 웹 애플리케이션 서버로 상용 제품을 사용하다면 보통 제조사에서 제공하는 커넥션 풀 구현체를 사용합니다. 그 외에 오픈소스 라이브러리로 Apache의 Commons DBCP와 Tomcat-JDBC, BoneCP, HikariCP 등이 있습니다. 커넥션 풀 라이브러리를 잘 사용하면 데이터베이스와 애플리케이션의 일부분에서 발생하는 문제..

728x90