74.4 Separate @Entity definitions from Spring configuration

Spring Boot tries to guess the location of your @Entity definitions, based on the @EnableAutoConfiguration it finds. To get more control, you can use the @EntityScan annotation, e.g.

_@Configuration_
_@EnableAutoConfiguration_
_@EntityScan(basePackageClasses=City.class)_
public class Application {

    //...

}

results matching ""

    No results matching ""