JAVA92 [Spring] Spring Boot 3.x SecurityConfig 설정 (Spring Security + OAuth2.0) 업무를 하며 오랜만에 spring security를 다시 만지게 됐다. 신규 프로젝트라 내 마음대로 셋팅을 할 수 있어 기존 많이 쓰던 Java 11 + Spring Boot 2.x 대신 Java 17 + Spring Boot 3.x로 셋팅했다. 그리고 별생각 없이 SecurityConfig를 이전 방식대로 했다가 엄청난 에러 모음을 만났다. 올해 초에 스프링 시큐리티 관련 내용을 블로깅 했기에 업데이트된 버전도 같이 올렸다. spring boot 2.x 에서 3.x 로 넘어가며 많은 기능들이 deprecated 됐다. [Spring] Spring Security + OAuth2.0으로 소셜 로그인 구현 ver 1. SSR (OAuth2.0 / 구글 로그인 / 네이버 로그인 2023.01.09 - [Ba.. 2023. 12. 16. Leetcode 배열 42 Trapping Rain Water (java) https://leetcode.com/problems/trapping-rain-water/description/ Trapping Rain Water - LeetCode Can you solve this real interview question? Trapping Rain Water - Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining. Example 1: [https://assets.leetcode.com/upl leetcode.com Given n non-negative integers represe.. 2023. 11. 18. Leetcode 문자열 819 Most Common Word (java) https://leetcode.com/problems/most-common-word/description/ Most Common Word - LeetCode Can you solve this real interview question? Most Common Word - Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at least one word that is not banned, and tha leetcode.com Given a string paragraph and a string ar.. 2023. 11. 14. [JPA] 다중 Datasource 구성하기 (Spring boot Multi Datasource / DB 여러개 설정) 프로젝트를 진행하던 중 여러개의 DB에서 데이터를 가져와야하거나 같은 DB지만 다른 스키마인 경우가 있었다. 이럴 때는 다중 Datasource를 설정해주면 된다. 코드로 구현해봤다. mysql의 'testdb'의 student 테이블이 있다. 또 'sample'의 student_log 테이블이 있다. 이 데이터들을 하나의 프로젝트에서 쓰고 싶다. 1. 스프링 부트 프로젝트 셋업 일단 일반적인 스프링부트 프로젝트를 만들어줬다. build.gradle plugins { id 'java' id 'org.springframework.boot' version '2.7.12' id 'io.spring.dependency-management' version '1.0.15.RELEASE' } group = 'com... 2023. 6. 19. 이전 1 2 3 4 ··· 23 다음