Configure the location of entities using @EntityScan in Spring Boot entry point class.
Update on Sept 2016: For Spring Boot 1.4+:
use org.springframework.boot.autoconfigure.domain.EntityScan
instead of org.springframework.boot.orm.jpa.EntityScan
, as …boot.orm.jpa.EntityScan is deprecated as of Spring Boot 1.4
More Related Contents:
- Configure Multiple MongoDB repositories with Spring Data Mongo
- Spring Boot – Loading Initial Data
- Spring Boot not serving static content
- Spring Boot, Spring Data JPA with multiple DataSources
- Spring Data JPA map the native query result to Non-Entity POJO
- What is difference between @RequestBody and @RequestParam?
- ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
- Disable all Database related auto configuration in Spring Boot
- Spring data JPA query with parameter properties
- Spring Boot CORS filter – CORS preflight channel did not succeed
- Spring Data – ignore parameter if it has a null value
- Spring catch all route for index.html
- Bean injection inside a JPA @Entity
- Enable HAL serialization in Spring Boot for custom controller method
- How to correctly use PagedResourcesAssembler from Spring Data?
- Can I make a custom controller mirror the formatting of Spring-Data-Rest / Spring-Hateoas generated classes?
- No property found for type… custom Spring Data repository
- JPA / JTA / @Transactional Spring annotation
- Can’t Autowire @Repository annotated interface in Spring Boot
- How to handle HTTP OPTIONS requests in Spring Boot?
- How to use LocalDateTime RequestParam in Spring? I get “Failed to convert String to LocalDateTime”
- Spring MVC Annotated Controller Interface with @PathVariable
- Spring Boot and how to configure connection details to MongoDB?
- Set default page size for JPA Pageable Object
- CSS not loading in Spring Boot
- Spring – How to stream large multipart file uploads to database without storing on local file system [duplicate]
- With Spring Data REST, why is the @Version property becoming an ETag and not included in the representation?
- Multiple data source and schema creation in Spring Boot
- Why is an excerpt projection not applied automatically for a Spring Data REST item resource?
- Configure spring boot to redirect 404 to a single page app [duplicate]