강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của dbsdpwnse37021
dbsdpwnse37021

câu hỏi đã được viết

Hướng dẫn JWT khởi động mùa xuân

DTO, Kho lưu trữ, Đăng nhập

그대로 따라했는데 오류가 납니다

Đã giải quyết

Viết

·

566

0

Description:

Parameter 0 of constructor in com.example.demo.service.CustomUserDetailsService required a bean of type 'com.example.demo.repository.UserRepository' that could not be found.

Action:

Consider defining a bean of type 'com.example.demo.repository.UserRepository' in your configuration.

 

구글링을 해봐도 전혀 해결되지 않아요 ㅠㅠ

spring-bootjwt

Câu trả lời 2

0

silvernine님의 프로필 이미지
silvernine
Người chia sẻ kiến thức

안녕하세요 🙂

Spring Boot 3.4.0 (SNAPSHOT) 버전에 맞춰 샘플 코드를 업데이트했습니다.

아래 링크에서 Java와 Kotlin 버전의 최신 샘플 코드를 확인하실 수 있으니 참고 부탁드립니다.

Javahttps://github.com/SilverNine/spring-boot-jwt-tutorial

Kotlinhttps://github.com/SilverNine/spring-boot-jwt-tutorial-kotlin

0

com.example.demo.repository.UserRepository 파일이 있는지, 그리고 어떻게 작성되었는지 확인이 필요합니다.

Hình ảnh hồ sơ của dbsdpwnse37021
dbsdpwnse37021

câu hỏi đã được viết

Đặt câu hỏi