그 외 에러 @ID 문제
@Id 어노테이션을
org.springframework.data.annotation.Id 로 임포트 해야 한다 그렇지 않을 경우,
Error creating bean with name '?? repository' defined in ?? repository defined in @EnableRedisRepositories declared on RedisRepositoriesRegistrar.EnableRedisRepositoriesConfiguration:
Invocation of init method failed;
Bean 등록이 안될 수 있다. ( 프로젝트 실행이 안된다! )
무슨 에러?
Spring Boot Test시 test를 찾지 못해서 발생하는 에러.
언제 발생?
Junit Test 시에 발생한다.
redisRepository Test 시에 발생했다.
에러 전문 :
Execution failed for task ':test'.
> No tests found for given includes: [cohttp://m.express.freight.common.UserRedisRepositoryTest.test](--tests filter)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
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.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 566ms
6 actionable tasks: 2 executed, 4 up-to-date
해결책 :
Run Tests using 을 Intellij IDEA로 변경한다.
'ERROR' 카테고리의 다른 글
[ERROR] Datagrip bug (0) | 2024.07.31 |
---|---|
[intellij] Stuck Scanning files to index (0) | 2023.06.10 |
[ERROR] Invalid character found in the request target ... The valid characters are defined in RFC 7230 and RFC 3986 (0) | 2023.05.19 |
[ERROR] com.querydsl.core.types.ExpressionException (0) | 2023.02.27 |
[ERROR] CORS React (CRA) + JAVA 11 (0) | 2022.07.24 |