From bf1d90ed5811931315a148fc8ce6756de77ace42 Mon Sep 17 00:00:00 2001 From: MK13 Date: Tue, 28 Jul 2020 00:05:28 +0200 Subject: [PATCH] Enable entity scanning --- .../main/java/de/pushservice/server/PushServiceApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/push-service-server/src/main/java/de/pushservice/server/PushServiceApplication.java b/push-service-server/src/main/java/de/pushservice/server/PushServiceApplication.java index c72d749..bb67a1b 100644 --- a/push-service-server/src/main/java/de/pushservice/server/PushServiceApplication.java +++ b/push-service-server/src/main/java/de/pushservice/server/PushServiceApplication.java @@ -2,6 +2,7 @@ package de.pushservice.server; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.scheduling.annotation.EnableAsync; @@ -11,6 +12,7 @@ import org.springframework.scheduling.annotation.EnableAsync; */ @SpringBootApplication @EnableAsync +@EntityScan("de.pushservice.server.model") public class PushServiceApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(PushServiceApplication.class);