2

I want to read a variable which keeps the packages name to scan from a properties file:

pluginpackages=com.x.a,com.x.b

This does work neither with

<context:component-scan base-package="${pluginpackages}"/>

nor with

@ComponentScan(basePackages = "${pluginpackages}")

Any idea how to read multiple base packages from a property?

Sercan Ozdemir
  • 4,641
  • 3
  • 34
  • 64

0 Answers0