Controller 내에 있는 DAO를 불러오지 못 했다고 한다.
root-context.xml 을 확인하니 context:component-scan 선언이 되어있지 않음.
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'fileUploadController':
Unsatisfied dependency expressed through field 'fileUploadDAO';
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type 'com.assignment.domain.FileUploadDAO' available
: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
root-context.xml - context:component-scan 추가
<context:component-scan base-package="com.sample.domain"/>
해결.
역시 모든 오류는 경로 / 오타가 제일 큰 것 같다..
참조
https://m.blog.naver.com/writer0713/220695884239