스프링) SpringSecurity - 6) Oauth2.0 구글 로그인 준비
·
자바 탐구
Oauth2.0 구글 로그인 준비 https://console.cloud.google.com/apis Google 클라우드 플랫폼 로그인 Google 클라우드 플랫폼으로 이동 accounts.google.com 위의 링크로 접속한다. 빨간색 네모 부분을 클릭한다. "새프로젝트"를 클릭한다. 프로젝트 이름을 정한 후, "만들기"를 클릭한다. 새로 만든 프로젝트를 선택 한다. "Oauth 동의 화면" -> "외부" -> "만들기"를 클릭한다. 해당 부분을 채운 뒤 "저장 후 계속"을 클릭한다. "사용자 인증정보" -> "+ 사용자 인증 정보 만들기" -> "OAuth 클라이언트 ID"를 클릭한다. "웹 애플리케이션"을 클릭한다. 해당 네모 박스 부분을 채운뒤 "만들기"를 누른다. Spring에서 Oauth2..
스프링) SpringSecurity - 5) Security 권한 처리
·
자바 탐구
Security 권한 처리 SecurityConfig package com.example.security1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.con..
스프링) SpringSecurity - 4) Security 로그인
·
자바 탐구
Security 로그인 SecurityConfig package com.example.security1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.crypto.bcry..
스프링) SpringSecurity - 3) Security 회원 가입
·
자바 탐구
Security 회원 가입 User Entity package com.example.security1.model; import jakarta.persistence.*; import lombok.Data; import org.hibernate.annotations.CreationTimestamp; import java.sql.Timestamp; @Entity @Data public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column private String username; @Column private String password; @Column private String email; @C..
스프링) SpringSecurity - 2) SecurityConfig 설정
·
자바 탐구
SecurityConfig 설정 IndexController package com.example.security1.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller //View를 return public class IndexController { //localhost:8080/ //localhost:8080 @GetMapping({"","/"}) public String index() { // 머스테치 기본폴더 ..
스프링) SpringSecurity - 1) Security, Mustache 환경 설정
·
자바 탐구
Security, Mustache 환경설정 build.gradle plugins { id 'java' id 'org.springframework.boot' version '3.0.7' id 'io.spring.dependency-management' version '1.1.0' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-bo..
미니 프로젝트) HANGHAE66
·
프로젝트 회고
항해66 지난 3주간 스프링을 익히며 배운 것들을 사용할 수 있는 기회로 생각하며 도전해 보았다. 프로젝트 소개 66일이 남은 시점.. 우리도 이제 자신 있게 할 말 못 할 말 모두 말할 수 있다. 국내 1위 직장인 커뮤니티 블라인드를 밴치마킹 모두에게 즐거움을 주는 놀이터 당당히 말할 수 없던 속 마음을 터놓고 이야기해 보자 유저 아이디의 첫 글자, 주특기, 기수만 공개된다. ex) u***** (Spring) 14기 개발 기간 2023.05.04 ~ 2023.05.11 S.A 미니프로젝트 10조 항해66 S.A 미니프로젝트 S.A 0. 항해99 미니프로젝트 10조 www.notion.so 와이어 프레임 ERD API 명세서 깃허브 및 BE팀원 이름 역할 이현규 @OliveLover - 댓글 API -..
백준) (자바)10250 ACM 호텔
·
알고리즘 탐구
ACM 호텔 ACM 호텔 - 백준 - 10250번: ACM 호텔 프로그램은 표준 입력에서 입력 데이터를 받는다. 프로그램의 입력은 T 개의 테스트 데이터로 이루어져 있는데 T 는 입력의 맨 첫 줄에 주어진다. 각 테스트 데이터는 한 행으로서 H, W, N, 세 정수 www.acmicpc.net N번째 손님이 H, W 크기의 호텔에서 특정순서대로 방배정이 된다면 몇 호에 투숙하게 되는지 구하는 문제이다. N 번째와 H(높이)를 이용하여 투숙할 층을 구한다. 나머지로 몇 층에 투숙하게 될지 알 수 있는데 만약 6층에 6번째 손님이 온다면 0층이 되므로 그때는 높이와 똑같이 6층으로 맞춰주는 조건을 추가해 준다. int floor = n % h; if(floor == 0) { floor = h; } strin..
오지랖 토끼
'분류 전체보기' 카테고리의 글 목록 (9 Page)