spring component-scan配置扫描多个包

spring的component-scan扫描多个包:spring

<context:component-scan base-package="x.y.z.service, x.y.z.controller" />

注意这里必须是包名。component

相关文章
相关标签/搜索