标签:情况 无法 discover ble can ack cli disco boot
在一些情况下Springboot项目中jpa扫描不到实体。比如默认扫描不到引用的其他项目中定义的实体。导致无法自动创建表。
解决方法,在Application中自定义实体扫描的包
@EntityScan(basePackages = {"com.aaa"})
@SpringBootApplication @EnableDiscoveryClient @ComponentScan(basePackages = {"com.aaa.*"}) @EntityScan(basePackages = {"com.aaa"}) public class CqgtApplication {
标签:情况 无法 discover ble can ack cli disco boot
原文地址:https://www.cnblogs.com/Leechg/p/12200474.html