0 containers and 1 tests were Method or class mismatch
: Settings -> Build, Execution, Deployment -> Build Tools -> Gradle
Build and run using과 Run tests using의 속성을 Intellij IDEA
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repository.UserRepositoryTest': Unsatisfied dependency expressed through field 'userRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.study.repository.UserRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
: com.examply.study 안에서 하위로 Test를 만들어야 하는데 상위 디렉토리로 만들 경우에 Autowired 가 안먹힘
댓글