From 58a5a1cbbc95eff9aa738e0285649253730c7976 Mon Sep 17 00:00:00 2001 From: lpandzic Date: Tue, 12 Mar 2024 10:18:12 +0100 Subject: [PATCH] fixed wiring --- .../src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java | 2 ++ .../com/infobip/spring/data/r2dbc/mysql/PersonRepository.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java b/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java index e8b54c0..e04edd1 100644 --- a/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java +++ b/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java @@ -3,7 +3,9 @@ import com.infobip.spring.data.r2dbc.EnableQuerydslR2dbcRepositories; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.context.annotation.Profile; +@Profile("mysql") @EnableQuerydslR2dbcRepositories @SpringBootApplication public class Main { diff --git a/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/PersonRepository.java b/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/PersonRepository.java index 3129415..f895094 100644 --- a/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/PersonRepository.java +++ b/infobip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/PersonRepository.java @@ -1,6 +1,8 @@ package com.infobip.spring.data.r2dbc.mysql; import com.infobip.spring.data.r2dbc.QuerydslR2dbcRepository; +import org.springframework.context.annotation.Profile; +@Profile("mysql") public interface PersonRepository extends QuerydslR2dbcRepository { }