[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a bean of type ~~ that could not be found.

선형채·2023년 11월 25일
0

에러


APPLICATION FAILED TO START


Description:

Parameter 2 of constructor in com.sun.sunboard.service.BoardService required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.

Action:

Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

해결방법

RedisConfig에서 설정한 RedisTemplate를 맞춰줘야한다

service에서는 RedisTemplate<String, String>을 사용했지만

config에서는 RedisTemplate<String, Object>를 사용했기때문에 해당 에러가 발생하였다

profile
JAVA BACK-END DEVELOPER 👩‍💻

0개의 댓글