본문 바로가기

분류 전체보기

(406)
curl로 get, post, put, delete 보내기 1. getcurl -d \-H "Content-Type: application/json" \-X get http://localhost:8080/api/article/7?param1=value1 2. postcurl -d '{"title":"value1", "content":"value2"}' \-H "Content-Type: application/json" \-X POST http://localhost:8080/api/article/7 3. DELETcurl -d '{"title":"value1", "content":"value2"}' \-H "Content-Type: application/json" \-X DELETE http://localhost:8080/api/article/7 4. PUTcurl..
mac h2 database 설치 1) 다운로드 하기https://www.h2database.com/html/main.html   2) h2/bin 디렉토리에서 h2 실행하기 sh h2.sh 3) 이후 설정은 아래 포스팅에서 확인 가능https://tomhoon.tistory.com/674 Spring boot - h2 설치 및 파일생성 (윈도우, j2 exception 오류 해결)1) h2 설치https://www.h2database.com/html/main.html H2 Database EngineH2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and se..
Springboot -소셜 로그인 연동 [소셜 로그인 연동 로직] 1. 소셜 서버에 로그인 폼 요청ex) htts://kauth.kakao.com/oauth/authorize?client_id=[apikey]&redirect_uri=[redirect_uri]&response_type=code 2. redirect_uri로 왔을 때 AccessToken 발급받기  redirect uri를 브릿지 페이지로 처리함-> 소셜서버에 AuthCode를 이용해 AccessToken 요청 후  발급받기  3. accessToken을 백엔드에 전달하기 4. 프론트에서 받은 accessToken을 이용해 소셜서버에 사용자 정보 요청하기-> 소셜서버에서 받은 사용자 정보를 이용해 도메인에 맞게 셋팅-> 회원가입 처리 >> 추가정보가 필요하면 이후 로직 수행 후 ..
Spring boot - h2 설치 및 파일생성 (윈도우, j2 exception 오류 해결) 1) h2 설치https://www.h2database.com/html/main.html H2 Database EngineH2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small footprint: around 2.5 MB jar file size     Suppwww.h2database.comwinodw installer 설치 2) 시작 프로그램 > h2 검색 > h2 console 클릭3) 화면..
Springboot - gradle 의존성 확인해보기(tomcat은 어디서가져오는걸까) ./gradlew dependencies  'Spring Boot Web' 의존성을 추가하면해당 의존성이 의존하는 또 다른 의존성이 tomcat이 존재함.
Spring - Application Context xml로 bean 설정해보기(옛날 버전) SpringBoot에서는 어노테이션만 선언하면 Bean을 자동으로 ApplicationContext에 Load해준다.  이전에 Spring에서는Bean을 XML로 직접 ApplicationContext에 실어야 했다. 그 과정을 실습하며 느껴보자   [XmlConfigurationContextLauncherApplication.java]package com.in28minutes.learn_spring_framework.h1;import java.util.Arrays;import org.springframework.context.annotation.ComponentScan;import org.springframework.context.annotation.Configuration;import org.spri..
Springboot - 실행시 콘솔에 나오는 "Spring Boot" 문구 커스텀하기 https://patorjk.com/software/taag/ Text to ASCII Art Generator (TAAG) patorjk.com 1) 사이트에서 원하는 문구를 입력 2) 복사하기  3) resources/application/banner.txt 생성하여 넣기4) 재시작
Jenkins - first job