스프링부트와 AWS로 혼자 구현하는 웹 서비스 - 05장 (1) 스프링부트 1.5 vs 스프링부트 2.0
2022. 4. 29. 13:53
무조건 따라하기/Spring Boot 기반 Web Service
05장 스프링 시큐리티와 OAuth2.0으로 로그인 기능 구현하기 스프링 시큐리티는 막강한 인증과인가기능을 가진 프레임워크입니다. 사실상 스프링 기반의 애플리케이션에서는 보안을 위한 표준이라고 보면 됩니다. 05장에서는 스프링 시큐리티와 OAuth2.0을 구현한 구글 로그인을 연동하여 로그인 기능을 만들어 보겠습니다. 5.1 스프링 시큐리티와 스프링 시큐리티 Oauth2 클라이언트 스프링 부트 1.5 vs 스프링 부트 2.0 스프링 부트 1.5에서의 OAtuh2 연동 방법이 2.0에서는 크게 변경되었습니다. 하지만, 인터넷 자료들을 보면 설정방법에 크게 차이가 없는 경우를 자주 봅니다. 이는 아래 라이브러리 덕분입니다. spring-security-oauth2-autoconfigure spring-sec..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdoIT03%2FbtrF30mAO8R%2F80OgO7skzTybBmFT8NZkaK%2Fimg.png)
[항해99] 사전 준비 (5) - 파일질라 설치 방법 및 가비아 접속, aws ec2 및 서버세팅
2022. 4. 27. 14:26
항해99
1. 파일질라 다운로드 Download FileZilla Client for Windows (64bit x86) Download FileZilla Client for Windows (64bit x86) The latest stable version of FileZilla Client is 3.59.0 Please select the file appropriate for your platform below. Please select your edition of FileZilla Client FileZilla FileZilla with manual FileZilla P filezilla-project.org 2. 가비아 홈페이지 (도메인) 웹을 넘어 클라우드로. 가비아 그룹웨어부터 멀티클라우드까지 하나의 클..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FNclFL%2FbtrF76ymLcw%2F4rtdsaCPks3NkHtnbAQNkk%2Fimg.png)
[항해99] 사전 준비 - (4) 크롤링, mongoDB, flask, ajax, 자주 쓰게될 html골격 및 css
2022. 4. 26. 16:27
항해99
setting > project: pythonProject > + > requests , Flask, pymongo, bs4, dnspython 1. Flask 시작 코드 from flask import Flask, render_template, request, jsonify app = Flask(__name__) @app.route('/') def home(): return render_template('index.html') if __name__ == '__main__': app.run('0.0.0.0',port=5000,debug=True) 2. ajax 스크립트 $.ajax({ type: "GET", url: "여기에URL을입력", data: {}, success: function (respons..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F08Zpz%2FbtrF77cWIbv%2F8hppklcBS1f0tzrmvOMSTK%2Fimg.png)
[항해99]0주차 사전 준비 (3) - 파이썬 패키지 및mongoDB, 크롤링
2022. 4. 25. 11:02
항해99
1. requests라는 패키지를 설치 일종의 ajax역활 사용법 import requests # requests 라이브러리 설치 필요 r = requests.get('http://spartacodingclub.shop/sparta_api/seoulair') rjson = r.json() rows = rjson['RealtimeCityAir']['row'] for row in rows: gu_name = row['MSRRGN_NM'] gu_mise = row['IDEX_MVL'] if gu_mise < 60: print(gu_name,gu_mise) 2. bs4 (크롤링을 하기위한 패키지 설치) import requests from bs4 import BeautifulSoup headers = {'Use..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FGziR6%2FbtrF7ddpecK%2FwLE0hrL8OhEo1evHGqTcKk%2Fimg.png)
[항해99] 사전 준비 0주차 (2) - repeat 과 파이썬 문법
2022. 4. 25. 10:45
항해99
1. repeat() 는 '*' 를 3번 반복하는 함수이다. let star_image = '*'.repeat(3); 2. 파이썬 funtion def funtion temp() {} def temp(): if문 funtion temp(age) { if (age > 20) { console.log('성인입니다.') } } def temp(age): if age > 20: print('성인입니다.') 리스트 fruits = ['사과','배','배','감','수박','귤','딸기','사과','배','수박'] for fruit in fruits: print(fruit) people = [{'name': 'bob', 'age': 20}, {'name': 'carry', 'age': 38}, {'name': 'j..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb5HIrr%2FbtrF4HT7G4d%2Fx5uabizU91R3UjIOuoMXAK%2Fimg.png)
[항해99] 사전 준비 (0)
2022. 4. 24. 21:36
항해99
1. 브라우저에서 json을 이쁘게 보여주는 프로그램 JSONView 브라우저에서 JSON 문서를 보세요. chrome.google.com 2. let text = email@gmail.com 변수가가 있다면 text.includes('@') 으로 text안에 @가 있는지 boolean값으로 반환한다. includes() 3. text 변수를 `` 를 이용하여 ${text} 으로 변수명을 사용할 수 있다. function q3() { let text = $("#input-q3").val(); $("#names-q3").append(`${text}`); } 4. ajax 기본 골격 $.ajax({ type: "GET", url: "", data: {}, success: function(response){ ..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbP1CyF%2FbtrzZ3vgqCb%2FB3DFV6jkjHJnfz3mQ62V3K%2Fimg.png)
스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 4장 (2)
2022. 4. 21. 13:13
무조건 따라하기/Spring Boot 기반 Web Service
2022.04.21 - [무조건 따라하기/java] - 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 4장 (1) 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 4장 (1) whitewise95.tistory.com 04 머스테치로 화면 구성하기 4.4 전체 조회 화면 만들기 1. 다음과 같이 하겠습니다 전체조회를 위해 index.mustache ui를 변경하겠습니다. dto패키지안에 PostsListResponseDto 클래스를 생성합니다. PostsRepository, PostsService, IndexController 순으로 코드를 추가하겠습니다. index.mustache 스프링부트로 시작하는 웹 서비스 Ver.2 글 등록 게시글번호 제목 작성자 최종수정일 {{#posts}} {{id..
![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcziK9q%2Fbtrz35yzJtE%2FoikI0tKlzDuoCzIWwzLWW0%2Fimg.png)
스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 4장 (1)
2022. 4. 21. 12:14
무조건 따라하기/Spring Boot 기반 Web Service
2022.04.20 - [무조건 따라하기/java] - 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 3장 (2 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 - 3장 (2) whitewise95.tistory.com 04장 머스테치로 화면구성하기 4.1 서버 템플릿 엔진과 머스테치 소개 템플린 엔진의 종류와 단점 jsp, velocity : 스프링부트에서 권장하지 않는 템플릿 엔진 Freemarker : 과하게 많은 기능, 숙련도가 낮을수록 Freemarker안에 비지니스 로직이 추가 될 확률이 높습니다. Thymeleaf 스프링에서 적극적으로 밀고 있지만 문법이 어렸습니다. vue.js를 사용해 본 경험이 있어 태그속성 방식이 익숙한 분이라면 선택하셔도 됩니다. 머스테치의 장점 문법이 다른 템..