摘要: spring里加上 </context:component-scan> <!-- 任务自动扫描 --> <task:annotation-driven/> <!-- 扫描位置 --> <context:annotation-config/> <context:component-scan base- 阅读全文