JAVA

JAVA/오류해결

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

에러상황 *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of constructor in com.bigbell.accountbook.rest.AccountRestController required a bean of type 'com.bigbell.accountbook.service.TodayAccountService' that could not be found. Action: Consider defining a bean of type 'com.bigbell.accountbook.service.TodayAccountService' in your configura..

JAVA/오류해결

[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a single bean, but 2 were found

Description: Parameter 0 of constructor in com.bigbell.springboot.cruddemo.service.EmployeeServiceImpl required a single bean, but 2 were found: - employeeDAOHibernateImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\target\classes\com\bigbell\springboot\cruddemo\dao\EmployeeDAOHibernateImpl.class] - employeeDAOJpaImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\targ..

JAVA/오류해결

[Spring Boot][오류해결] org.springframework.beans.factory.UnsatisfiedDependencyException

org.springframework.beans.factory.UnsatisfiedDependencyException Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException 스프링부트를 사용하다가 위와 같은 에러가 발생하는 경우가 있다. 특정 인터페이스를 상속한 클래스 파일이 여러 개일 때 의존성 주입을 위해 @Qualifier 어노테이션을 사용하게 되는데, 이 때 실수를 하면 발생하는 에러다. 아래와 같은 DAO 파일과 Service 파일 있다고 해보자. (전제 >>> DAO 인터페이스를 상속..

JAVA/오류해결

[오류해결] Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost are already in use

Tomcat 서버를 사용할 때 생기는 서버 오류이다. 오류에 대한 설명은 아래와 같다. Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 서버를 Run 했을 때 이런 경고창과 함께 발생한다. 이 오류의 원인은 이미 (8005, 8080) 포트를 다른 톰캣서버에서 ..

JAVA/오류해결

[오류해결] Missing artifact com.fasterxml.jackson.core:jackson-databind:bundle

메이븐 파일을 사용할 때 jackson-core를 활용해 json을 사용하려고 할 때 메이븐 검색을 통해 얻은 dependency를 그대로 사용하면 라이브러리가 오류가 발생한다. 그대로 pom.xml에 갖다가 붙이면 Missing artifact com.fasterxml.jackson.core:jackson-databind:bundle:2.x.x 라는 오류 가 나타난다. ... com.fasterxml.jackson.core jackson-databind 2.13.1 bundle ... Stack overflow에 이 문제에 대한 해결방법을 알려주는 포스트가 있어 공유한다. https://stackoverflow.com/questions/54054390/missing-artifact-com-fasterx..

JAVA/Maven

[Maven] 메이븐과 리포지토리

0. 메이븐 이란? 메이븐이란 Apache에서 개발하고 관리하는 오픈 소스 빌드 도구이다. 의존성 관리 툴로도 많이 사용된다. 정리하자면 프로젝트 빌드, 관리에 사용하는 도구이다. 1. 메이븐의 작동 방식 pom.xml에서 선언한 dependency들을 저장소로 불러와 사용하는데 그 과정은 아래와 같다. Maven 프로젝트에서 pom.xml 파일을 읽는다. Local Repository에 파일이 있는지 체크한다. 만약 필요한 파일이 없다면 Central Repository에 요청한다. Central Repository로부터 정보를 가져온다. 그 정보를 Local Repository에 저장한다. 모든 준비가 갖춰지면 프로젝트를 실행시킨다. 2. Local Repository 로컬 리포지토리는 메이븐 프로젝..

gakko
'JAVA' 카테고리의 글 목록 (2 Page)