Reference article:
----------------------------------
1, SpringBoot default scanning mode is where the entity classes classes start scanning package, so if the entity class and the application is not in the same security problems.
2, if the two are not within a packet header, an error occurs, then you need to add annotations on @EntityScan class start ( "com.boot.demo.xxx. *. *"), So as to allow application entity class already exists.