Loading JPA Entity from external Jar file

前端 未结 4 1956
清酒与你
清酒与你 2020-12-16 03:01

i have a project setup where i have modularized a project, and packaged a module into a jar file which gets included in the main project when we create a war and deploy it.

4条回答
  •  情书的邮戳
    2020-12-16 03:29

    if you are using spring boot use the entity scan annotation in your main springboot class

    @EntityScan(
            basePackageClasses = {externalpackage.classname.class}
    )
    

提交回复
热议问题