From 4d484774104b7f612db11fa8e4ebe75bb4e23de4 Mon Sep 17 00:00:00 2001 From: Mohd-Arham Date: Fri, 28 Nov 2025 11:11:44 +0530 Subject: [PATCH] arham khan --- .../bbps/serviceImpl/ComplainServiceImpl.java | 4 ++-- .../billpaymentservice/bbps/swagger/SwaggerConfig.java | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/billpaymentservice/bbps/serviceImpl/ComplainServiceImpl.java b/src/main/java/com/billpaymentservice/bbps/serviceImpl/ComplainServiceImpl.java index 5ae05b2..23b11d0 100644 --- a/src/main/java/com/billpaymentservice/bbps/serviceImpl/ComplainServiceImpl.java +++ b/src/main/java/com/billpaymentservice/bbps/serviceImpl/ComplainServiceImpl.java @@ -118,8 +118,8 @@ public class ComplainServiceImpl implements ComplainService { Optional dataById = transactionMasterRepository.findById(complainRequestDTO.getTxnId()); if (dataById == null || dataById.isEmpty()) { - LOGGER.warn("Master Data By Id is null"); - throw new CustomException("Master Data is required", "FAILED", BBPSConstant.BADREQUEST, null); + LOGGER.warn("Txn Id is null"); + throw new CustomException("Txn Id is required", "FAILED", BBPSConstant.BADREQUEST, null); } TransactionMaster transData = dataById.get(); diff --git a/src/main/java/com/billpaymentservice/bbps/swagger/SwaggerConfig.java b/src/main/java/com/billpaymentservice/bbps/swagger/SwaggerConfig.java index 735eab2..7aec20f 100644 --- a/src/main/java/com/billpaymentservice/bbps/swagger/SwaggerConfig.java +++ b/src/main/java/com/billpaymentservice/bbps/swagger/SwaggerConfig.java @@ -1,5 +1,7 @@ package com.billpaymentservice.bbps.swagger; +import java.util.List; + import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -9,6 +11,7 @@ import io.swagger.v3.oas.models.info.Contact; import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.security.SecurityScheme; +import io.swagger.v3.oas.models.servers.Server; @Configuration public class SwaggerConfig { @@ -25,9 +28,10 @@ public class SwaggerConfig { .components(new io.swagger.v3.oas.models.Components().addSecuritySchemes("Authentication", new SecurityScheme().name("Authentication").type(SecurityScheme.Type.APIKEY) .in(SecurityScheme.In.HEADER))) - .info(new Info().title("Spring Boot REST API").description("Spring Boot REST API for BBPS") - .version("1.0.0").contact(new Contact().name("Globots").url(serverUrl) - .email("info@merchantpanel.com"))); + .info(new Info().title("Spring Boot REST API").description("Spring Boot REST API for BBPS Project") + .version("1.0.0").contact(new Contact().email("info@merchantpanel.com"))) + .servers(List.of(new Server().url(serverUrl).description(serverDescription))); } + }