I am developing Spring web application inside a maven project. However, I am able to obtain my .war file with no erors using the mvn clean install, but when I want to run it on apache tomcat I got an error that I can't understand whic says:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.util.ArrayList' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Why such an error can occcur?? and what is beans? and why we need them??