Java/Spring with Error29 [해결 방법] "this.bCryptPasswordEncoder" is null java.lang.NullPointerException: Cannot invoke "org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.encode(java.lang.CharSequence)" because "this.bCryptPasswordEncoder" is nullEnvironmentLanguage: Java 17Framework: SpringBoot 3.1.0, Spring Security 6.1.0DB: MySQL, Redis 오류java.lang.NullPointerException: Cannot invoke "org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.e.. 2024. 11. 12. [해결 방법] Failed to determine a suitable driver class Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class 근데 이제 DataSource와 Drive class를 곁들인EnvironmentLanguage: Java 17Framework: SpringBoot 3.1.0, Junit5DB: MySQL, Redis 오류dataSourceScriptDatabaseInitializer의 Bean 생성을 실패적합한 드라이버 클래스를 찾지 못함 원인.gitignore에 환경변수 설정과 관련된 정보가 들어있는 application.properties를 추가github에서 application.properties가 제거된 채로 업로드왜인지 모르.. 2024. 9. 28. [해결 방법] TooManyActualInvocations org.mockito.exceptions.verification.TooManyActualInvocationsEnvironmentLanguage: Java 17Framework: SpringBoot 3.1.0, Junit5DB: MySQL, Redis 오류org.mockito.exceptions.verification.TooManyActualInvocations: userService bean.create( refEq(cohttp://m.msgs.domain.user.dto.SignUpRequestDTO@69bf351e));Wanted 1 time:-> at cohttp://m.msgs.domain.user.service.UserService.create(UserService.java:41)But .. 2024. 9. 22. [해결 방법] Argument(s) are different! Argument(s) are different! Actual invocations have different arguments:EnvironmentLanguage: Java 17Framework: SpringBoot 3.1.0DB: MySQL, Redis 오류Argument(s) are different! Wanted:userService bean.create( com.msgs.domain.user.dto.SignUpRequestDTO@4dbf902);-> at com.msgs.domain.user.service.UserService.create(UserService.java:47)Actual invocations have different arguments:userService bean.creat.. 2024. 9. 15. [해결 방법] NoUniqueBeanDefinitionException org.springframework.beans.factory.NoUniqueBeanDefinitionExceptionEnvironmentLanguage: Java 17DB: MySQL, Redis 오류123456org.springframework.beans.factory.UnsatisfiedDependencyException : Error creating bean with name '...' defined in file [경로]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No.. 2024. 9. 4. [해결방법] io.jsonwebtoken.ExpiredJwtException io.jsonwebtoken.ExpiredJwtExceptionEnvironmentLanguage: Java 17DB: MySQL, Redis 오류123456789101112131415public void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws IOException, ServletException { // 1. Request Header에서 JWT 토큰 추출 String accessToken = SecurityUtils.resolveToken(request); // 2. 토큰 유효성 검사 // 토큰이 유효할 경우, 토큰.. 2024. 8. 30. 이전 1 2 3 4 5 다음