Child pages
  • multiple packages in context:component-scan, spring config

Contents

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

 

filter 설정

<context:component-scan base-package="x.y.z">
   <context:include-filter type="regex" expression="(service|constroller)\..*"/>
</context:component-scan>

 

Ref

 

  • No labels

This page has no comments.