This is an automated email from the ASF dual-hosted git repository.

aiceflower pushed a commit to branch fix-master-compile
in repository https://gitbox.apache.org/repos/asf/linkis.git

commit c433abcdf9af2d4d3e7421c65e8504f652f5652c
Author: aiceflower <[email protected]>
AuthorDate: Thu Jun 25 14:23:27 2026 +0800

    #AI COMMIT# fix: 补全 Spring Boot 2.7 部署兼容性配置
    
    - linkis-dist/pom.xml: 显式引入 commons-lang 2.6 (Eureka Client 依赖其
      ExceptionUtils, 但 spring-cloud-netflix 传递依赖未带入)
    - application-engineconn.yml: 补全 spring.main.allow-circular-references +
      spring.mvc.pathmatch.matching-strategy (ant_path_matcher) +
      spring.mvc.servlet.path + spring.cloud.loadbalancer.cache.enabled=false
    
      eureka.yml 和 linkis.yml 已在 master 上含相关配置,但 engineconn.yml
      遗漏了。缺失会导致 RPC POST /rpc/receiveAndReply 返回 404,引擎启动失败。
    
    Co-Authored-By: Claude Opus 4.7 <[email protected]>
---
 linkis-dist/package/conf/application-engineconn.yml | 13 +++++++++++++
 linkis-dist/pom.xml                                 |  6 ++++++
 2 files changed, 19 insertions(+)

diff --git a/linkis-dist/package/conf/application-engineconn.yml 
b/linkis-dist/package/conf/application-engineconn.yml
index 4f9610513c..bf13af55b8 100644
--- a/linkis-dist/package/conf/application-engineconn.yml
+++ b/linkis-dist/package/conf/application-engineconn.yml
@@ -15,11 +15,24 @@
 spring:
   application:
     name: linkis-cg-engineconn
+  main:
+    allow-bean-definition-overriding: true
+    # Spring Boot 2.7+ compatibility: required for springfox 3.0.0 + Linkis 
internal bean cycles
+    allow-circular-references: true
+  mvc:
+    pathmatch:
+      matching-strategy: ant_path_matcher
+    servlet:
+      path: /api/rest_j/v1
   servlet:
     multipart:
       max-file-size: 500MB
       max-request-size: 500MB
       file-size-threshold: 50MB
+  cloud:
+    loadbalancer:
+      cache:
+        enabled: false
 eureka:
   instance:
     # prefer-ip-address: true
diff --git a/linkis-dist/pom.xml b/linkis-dist/pom.xml
index d63bd6b3c8..5ffb17e07a 100644
--- a/linkis-dist/pom.xml
+++ b/linkis-dist/pom.xml
@@ -168,6 +168,12 @@
       <artifactId>hadoop-hdfs-client</artifactId>
       <version>${hadoop.version}</version>
     </dependency>
+    <!-- Eureka Client 依赖 commons-lang 2.x 的 ExceptionUtils -->
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.6</version>
+    </dependency>
 
   </dependencies>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to