问题1
available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
这个是因为包扫描的时候没有扫描到你要注入的某个包,就是@autuowired下边的那个dao所在的文件包,需要在Spring.xml ,以及springmvc.xml的包中配置好
spring.xml下
<context:component-scan base-package="com.xxx.activiti.**.presto" />
springmvc.xml下
<context:component-scan base-package="com.xxx.activiti.base.presto" />
保证加上@autowired之后dao不报红,如果报红则说明没有扫描到包的位置。配置好上面的就可以不报红了,如果不报红了,运行起来依然报问题1中的错则说明还有其他地方的配置文件涉及到没扫描到,包的路径应该是没有配置。