org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardService': Unsatisfied dependency expressed through field 'dao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.spring.main.dao.BoardDAO' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
- 데이터 베이스 연결 안 돼서 아무것도 찾을 수 없다고 나온 것
- 컨트롤러에 list 요청 없었음
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardService': Unsatisfied dependency expressed through field 'dao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardDAO' defined in file [C:\STUDY\12_SPRING\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\14_PhotoBoard\WEB-INF\classes\com\spring\main\dao\BoardDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\STUDY\12_SPRING\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\14_PhotoBoard\WEB-INF\classes\com\spring\main\dao\boardMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\STUDY\12_SPRING\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\14_PhotoBoard\WEB-INF\classes\com\spring\main\dao\boardMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.spring.main.dto.boardDTO'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.spring.main.dto.boardDTO
- boardDTO > BoardDTO 로 수정
심각: 경로 [/main]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is java.lang.NullPointerException]을(를) 발생시켰습니다.