본문 바로가기

Java147

[해결 방법] no suitable constructor found for Jackson2JsonRedisSerializer(Class<CAP#1>) EnvironmentLanguage: Java17Framework: SpringBoot 3.1.0 오류constructor Jackson2JsonRedisSerializer.Jackson2JsonRedisSerializer(Class) is not applicable(argument mismatch; Class cannot be converted to Class)constructor Jackson2JsonRedisSerializer.Jackson2JsonRedisSerializer(JavaType) is not applicable(argument mismatch; Class cannot be converted to JavaType)where T is a type-variable: T extends Ob.. 2024. 11. 24.
[해결 방법] "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.