I have a config file like
package com.mypackage.referencedata.config;
@Configuration
@ComponentScan ("com.mypackage.referencedata.*")
public class ReferenceDataConfig {
In a spring xml if I have
<context:component-scan base-package="com.mypackage.referencedata.config.*" />
it does not get loaded.
If I use
<context:component-scan base-package="com.mypackage.referencedata.*" />
it works.
What gives? I’d expect the 1st to work as well.
Will scan packages inside
com.mypackage.referencedata.configas it is package.Will work fine.