[공부] 프로그래밍/ERROR
-
[error] Invalid value type for attribute 'factoryBeanObjectType': java.lang.String[공부] 프로그래밍/ERROR 2024. 5. 21. 11:03
Invalid value type for attribute 'factoryBeanObjectType': java.lang.Stringfeign-client를 사용하기 위해 build.gradle에 아래와 같은 디펜던시를 추가해주었다.ext { // Feign set('springCloudVersion', '2021.0.3') set('commonsLangVersion', '3.12.0')}dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" }}// Feignimplementation 'org.springframework.cloud:spring-c..
-
[error] required a single bean, but 3 were found[공부] 프로그래밍/ERROR 2024. 5. 14. 15:05
required a single bean, but 3 were found1. @Primary 사용여러 빈 중 하나를 기본 빈으로 설정하여, 우선순위를 정하도록 합니다.@Bean@Primarypublic Step sendNotificationStep() { // Step 빈 생성 로직}2. @Qualifier 사용메서드 파라미터에 특정 빈을 명시적으로 주입하도록 설정합니다.@Beanpublic Job sendNotificationBeforeClassJob(JobBuilderFactory jobBuilderFactory, StepBuilderFactory stepBuilderFactory, ..
-
[error] Execution failed for task ':test'.> No tests found for given includes: [com.fastcampus.pass.job.pass.AddPassesTaskletTest](--tests filter)[공부] 프로그래밍/ERROR 2024. 4. 24. 15:38
Execution failed for task ':test'. > No tests found for given includes: [com.fastcampus.pass.job.pass.AddPassesTaskletTest](--tests filter) junit 5인 경우, import의 test를 아래와 같이 수정하기import org.junit.jupiter.api.Test;인텔리제이의 셋팅을 아래와 같이 변경하기
-
[error] save(Object)" because "this.passRepository" is null, No ParameterResolver registered for parameter in constructor[공부] 프로그래밍/ERROR 2024. 4. 24. 15:37
save(Object)" because "this.passRepository" is nullPassRepository 빈이 올바른 패키지에 위치하지 않았을 경우 PassRepository에 대한 구성이 제대로 되어있지 않은 경우 (예: @Repository 어노테이션이 빠져있는 경우) PassRepository 인터페이스를 구현한 클래스가 없는 경우 No ParameterResolver registered for parameter in constructor @SpringBootTest(classes = PassBatchApplication.class)@SpringJUnitConfigclass PassRepositoryTest { private final PassReposito..
-
[error] MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user[공부] 프로그래밍/ERROR 2024. 4. 16. 16:13
MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user 에러의 발생원인은 MYSQL_USER: root 를 설정했기 때문이다. root를 다른 이름으로 변경한 뒤에 아래 커맨드 실행하면 해결된다. docker-compose up --build --force-recreate -d