Browse Source

Implementação do Openfeign.

Ranghetti 4 months ago
parent
commit
1cd24672b4
2 changed files with 23 additions and 1 deletions
  1. 21 1
      pom.xml
  2. 2 0
      src/main/java/com/platform2easy/genesis/GenesisApplication.java

+ 21 - 1
pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>3.4.5</version>
+        <version>3.5.4</version>
         <relativePath/> <!-- lookup parent from repository -->
     </parent>
     <groupId>com.platform2easy</groupId>
@@ -29,6 +29,8 @@
 
     <properties>
         <java.version>21</java.version>
+        <hibernate.version>6.6.13.Final</hibernate.version>
+        <spring-cloud.version>2025.0.0</spring-cloud.version>
     </properties>
 
     <dependencies>
@@ -91,8 +93,26 @@
             <artifactId>core</artifactId>
             <version>4.10.0</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+
     </dependencies>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-dependencies</artifactId>
+                <version>${spring-cloud.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <build>
         <plugins>
             <plugin>

+ 2 - 0
src/main/java/com/platform2easy/genesis/GenesisApplication.java

@@ -2,9 +2,11 @@ package com.platform2easy.genesis;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.openfeign.EnableFeignClients;
 
 
 @SpringBootApplication
+@EnableFeignClients
 public class GenesisApplication {
 
     public static void main(String[] args) {