스프링부트

공부/Spring

스프링부트 3.X 스프링 시큐리티 JWT 토큰 기능 구현하기

Spring Boot 3.0.2 version 기준입니다. (Spring Boot 3.1.0까지 실행 확인) 이전 글 아래 포스팅과 이어지는 글입니다. 스프링부트 3.X 스프링 시큐리티 사용해서 회원가입, 로그인, 로그아웃 구현하기 스프링 시큐리티? 스프링 시큐리티는 스프링 기반의 애플리케이션 보안(인증, 인가, 권한)을 담당하는 스프링 하위 프레임워크이다. 인증(Authentication)? 인증은 사용자의 신원을 입증하는 과정이 devhan.tistory.com JWT? JWT는 JSON Web Token의 줄임말이다. JWT는 토큰 기반 인증을 지원한다. 토큰 기반 인증은 말 그대로 토큰을 사용하는 방법인데, 토큰은 서버에서 클라이언트를 구분하기 위한 유일한 값이다. 서버에서 토큰을 생성해서 클라이..

공부/Spring

스프링부트 3.X 스프링 시큐리티 사용해서 회원가입, 로그인, 로그아웃 구현하기

스프링 시큐리티? 스프링 시큐리티는 스프링 기반의 애플리케이션 보안(인증, 인가, 권한)을 담당하는 스프링 하위 프레임워크이다. 인증(Authentication)? 인증은 사용자의 신원을 입증하는 과정이다. 쉽게 말하면 우리가 흔히 어떤 사이트에 아이디와 비밀번호를 입력하고 로그인하는 과정이다. 인가(Authorization)? 인가는 사용자의 권한을 확인하는 작업이다. 이것도 쉽게 말하면 파일 공유 시스템에서 권한 별로 접근할 수 있는 폴더가 상이하다. 상위직책자는 들어갈 수 있고, 하위 직책자는 접근할 수 없는 경우 사용자의 권한을 확인해야 하는데 이 과정을 인가라고 한다. 그래서 스프링 시큐리티? 스프링 기반 애플리케이션의 보안을 담당하는 스프링 하위 프레임워크이다. 이름에 걸맞게 보안 관련 옵션을..

에러 해결

SpringBoot 3.X 인텔리제이 켜자마자 에러가 발생했을 때 해결 법

새로운 프로젝트를 실행해보고자 git에서 팀원이 올려놓은 프로젝트를 받아서 실행해보려 했는데 켜자마자 기다렸다는 듯이 에러가 우수수 떨어졌다. A problem occurred configuring root project 'tooit'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.0. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.1.0 > No matching variant of org.s..

에러 해결

[SpringBoot] message.properties 파일에 한글이 아닌 외계어가 나올 경우 문제 해결

김영한님 강의를 듣다가 messages.properties 파일을 오픈할 일이 생겼는데 아니 한글이어야 할 내용들이 이상한 외계어로 바뀌어져 있었다. 저번에 message 관련 에러가 발생했을 때 해결 방법은 아니었지만 수 많은 해결 방법 중 하나였었는데 혹시 그 방법을 사용하면 될까 해서 해봤더니 해결이 되었다! [SpringBoot] No message found under code 'hello' for locale 'null'. 에러 해결 김영한님의 강의를 열심히 듣는 도중, 다음과 같은 에러가 발생했다. org.springframework.context.NoSuchMessageException: No message found under code 'hello' for locale 'null'. at..

에러 해결

[SpringBoot] No message found under code 'hello' for locale 'null'. 에러 해결

김영한님의 강의를 열심히 듣는 도중, 다음과 같은 에러가 발생했다. org.springframework.context.NoSuchMessageException: No message found under code 'hello' for locale 'null'. at org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:76) ... 생략 영알못이지만 대략 파악해보자면 해당 메시지를 찾을 수 없어 뜨는 에러 같아서 application.properties 설정을 다시 확인했다. spring.messages.basename=message --> 변경 spring.messages.base..

에러 해결

[IntelliJ] 인텔리제이servletComponentRegisteringPostProcessor': Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: 에러 해결

김영한님의 강의를 이제 들어볼까 하면서 스프링부트를 실행했는데 에러가 발생했다. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletComponentRegisteringPostProcessor': Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: javax/servlet/annotation/WebServlet at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(..

데부한
'스프링부트' 태그의 글 목록