Use retrofit and other mandatory libraries, add .env

This commit is contained in:
2025-08-28 12:38:02 +05:00
parent 8702acf21d
commit e4914a839f
5 changed files with 30 additions and 6 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
SERVER_PORT=8090

1
.env.example Normal file
View File

@ -0,0 +1 @@
SERVER_PORT=8090

22
pom.xml
View File

@ -29,6 +29,10 @@
</scm>
<properties>
<java.version>21</java.version>
<retrofit.version>3.0.0</retrofit.version>
<spring-dotenv.version>4.0.0</spring-dotenv.version>
<springdoc-openapi-starter.version>2.8.9</springdoc-openapi-starter.version>
<spring-cloud.version>2025.0.0</spring-cloud.version>
</properties>
<dependencies>
@ -56,10 +60,22 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-jackson</artifactId>
<version>${retrofit.version}</version>
</dependency>
<dependency>
<groupId>me.paulschwarz</groupId>
<artifactId>spring-dotenv</artifactId>
<version>${spring-dotenv.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${springdoc-openapi-starter.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@ -2,12 +2,16 @@ package com.backend.extractor.kodik.service.anyame.bff;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableCaching
@EnableEurekaServer
public class AnyameVueBffApplication {
public static void main(String[] args) {
SpringApplication.run(AnyameVueBffApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(AnyameVueBffApplication.class, args);
}
}

View File

@ -1 +1,3 @@
spring.application.name=anyame-vue-bff
server.port=${SERVER_PORT}
eureka.client.serviceUrl.defaultZone=http://localhost:${SERVER_PORT}/eureka/