spring的component-scan掃描多個包:spring
<context:component-scan base-package="x.y.z.service, x.y.z.controller" />
注意這裏必須是包名。component