From a3e0fb61f333c0182f38cd5a4259126188f87688 Mon Sep 17 00:00:00 2001 From: Gabriela Costa Date: Fri, 24 Nov 2023 03:44:18 -0300 Subject: [PATCH] Configuracao swagger --- .../com/medcontrol/medcontrol/config/SwaggerConfig.java | 3 --- src/main/resources/application.properties | 3 +++ .../medcontrol/medcontrol/MedcontrolApplicationTests.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/medcontrol/medcontrol/config/SwaggerConfig.java b/src/main/java/com/medcontrol/medcontrol/config/SwaggerConfig.java index 5fcc524..ce11c75 100644 --- a/src/main/java/com/medcontrol/medcontrol/config/SwaggerConfig.java +++ b/src/main/java/com/medcontrol/medcontrol/config/SwaggerConfig.java @@ -2,13 +2,10 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; - -import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Contact; import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.info.License; -import io.swagger.v3.oas.models.security.SecurityScheme; @Configuration public class SwaggerConfig { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 44aadcd..b54c8a5 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,8 @@ # nome da aplicação spring.application.name=med-control +logging.level.org.springframework=INFO +logging.level.org.springframework.web=DEBUG +server.servlet.context-path=/medcontrol # DATASOURCE spring.datasource.url=jdbc:sqlserver://sqlserver-fiap.database.windows.net:1433;database=med-control-database;user=admuser@sqlserver-fiap;password={your_password_here};encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30; diff --git a/src/test/java/com/medcontrol/medcontrol/MedcontrolApplicationTests.java b/src/test/java/com/medcontrol/medcontrol/MedcontrolApplicationTests.java index f98ad15..72d8395 100644 --- a/src/test/java/com/medcontrol/medcontrol/MedcontrolApplicationTests.java +++ b/src/test/java/com/medcontrol/medcontrol/MedcontrolApplicationTests.java @@ -6,8 +6,8 @@ @SpringBootTest class MedcontrolApplicationTests { -// @Test -// void contextLoads() { -// } + @Test + void contextLoads() { + } }