I have a problem of component-scan :
<context:component-scan base-package="fr.example" />
I want modify (or override) existing configuration but i don't know where i can modify the default value
I have a problem of component-scan :
<context:component-scan base-package="fr.example" />
I want modify (or override) existing configuration but i don't know where i can modify the default value
You should understand @Configuration and @EnableAutoConfiguratiom
@Configuration is an analog for xml file. Such classes are sources of bean definitions by defining methods with the @Bean annotation.
@EnableAutoConfiguratiom can be used with or without @Configuration. It tells Spring to set up some basic infrastructure it depends on what you have in the classpath.
More you can find e.g here :