Kotlin/Spring (14) 썸네일형 리스트형 (Spring) HTTP 프로젝트 HTTPS로 업그레이드 하기 HTTP와 HTTPS란??HTTPHyper Text Transfer Protocol의 약자서로 다른 시스템들 사이에서 통신을 주고 받게 하는 가장 기본적인 프로토콜서버에서 브라우저로 데이터를 전송하는 용도로 가장 많이 사용한다전송되는 요청 / 응답 정보가 기본적으로는 암호화 되어 있지 않아서 보안 정보 도난의 위험이 있다HTTPSHyper Text Transfer Protocol Secure 의 약자HTTP의 보안정보와 도난의 단점을 보완하기 위해 사용하는 프로토콜SSL / TLS 프로토콜을 사용하여 HTTP를 암호화 하여 주고 받을 때 쓰는 통신 프로토콜진행 방식인증서를 발급해준다로컬에서 테스트 할 경우 인증서를 application에 등록해준다코드로 HTTP 접속을 전부 HTTPS로 이동 시킨다인증서.. (Spring) 복합키 설정 시 entitynotfoundexception unable to find with id 0 애러 해결 로직 구성부모 Entity가 생성이 되는 로직에서 자식 Entity가 동시에 생성이 되는 로직여기서 자식 Entity는 3개의 복합키를 가지고 있는 Entity이다// 부모... 이상 생략starScoreService.giveCommentScore(reviewResult, userResult, result, score)commentRepository.save(result)... 이하 생략// 자식 @Transactional fun giveCommentScore(review: Review, user: User, comment: Comment, starScore:Float){ val result = StarScore.create(user, review, comment, starSco.. (Spring) FATAL: Max client connections reached 애러 해결 Spring 프로젝트를 실행하는데 위 같은 오류가 발생하였다FATAL: Max client connections reached 이를 보면 DB에 클라이언트 연결 한도가 초과 한다고 나온다 일단 나는 DB를 다루기 위해서 supabase를 사용하는데 supabase github에 해당 원인이 잘 나와있다 원인을 보면 각 DB 마다 클라이언트 기본 제한 값이 정해져있는데 이 제한 값을 초과했다는 것이다 그러면 우선 누군가가 연결을 많이 시도 한 경우를 생각 할 수 있는데 우선 같이 협업하고 있는 팀들에게 해당 이슈를 공유를 하고 원인을 파악할 예정이고 우선 해결 부터 해야 할 것 같다spring: datasource: url: jdbc:supabaseUrl/postgres?user=유저 아이디&pa.. (Spring) 사용자 관리를 손쉽게!! Spring Security의 구조를 알아보자!! Spring Security란??인증 및 데이터 권한 관리, 데이터 보호기능 까지 포함한 사용자 관리 기능 Spring Framework다한마디로 유저의 인증이나 권한 등의 여러가지 사용자 관련 기능을 담당 하는 기능이라고 볼 수 있다Spring Security의 기본 아키텍쳐사용자의 요청이 서버로 들어온다인증 필터(Authentication Holder) 가 요청을 받고 인증 객체를 인증 관리자 (Authentication Manager) 에게 전달한다인증 관리자 (Authentication Manager) 는 등록된 인증 공급자 (Authentication Provider)를 조회하며 인증을 요구한다.이후 인증 공급자 (Authentication Provider)가 실제 User 데이터를 조회 하면서.. (Spring) LoggingFailureAnalysisReporter 애러 해결 방법 해당 문제는 보통 애러로그를 제대로 읽어 봐야한다Description: Parameter 0 of constructor in com.example.mytodo.domain.todo.service.TodoServiceImpl required a bean of type 'com.example.mytodo.domain.todo.repository.TodoRepository' that could not be found.애러 로그는 이렇다 보면 TodoRepository의 bean이 주입이 되지 않았다는 것이다여기서 나는 몇가지 가능성을 살펴 보았다실수로 Annotation을 주입을 안했다@Repositoryinterface TodoRepository: JpaRepository { @Query("SELEC.. (Spring) BeanCreationException : Ambiguous mapping. Cannot map 'todoController' method 해결 방법 웹을 기획하고 Api를 작성하고 DTO 및 컨트롤러를 작성하고 실행하는 도중에 해당 애러가 발생했다2024-05-14T21:03:55.435+09:00 ERROR 45937 --- [mytodo] [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebM.. 이전 1 2 다음