From 99922ece981860f2a17e48c399c9d55a10f620f9 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Mon, 6 Apr 2026 01:10:22 +0800 Subject: [PATCH] update doc --- .../src/main/resources/application.properties | 4 ++-- .../java/com/xxl/job/executor/test/ollama/OllamaTest.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties index f2971ef3..c42edcd8 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties +++ b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties @@ -33,8 +33,8 @@ xxl.job.executor.logretentiondays=30 xxl.job.executor.excludedpackage= ### http timeout -spring.http.clients.connect-timeout=5000 -spring.http.clients.read-timeout=30000 +spring.http.clients.connect-timeout=10000 +spring.http.clients.read-timeout=180000 ### spring-ai retry spring.ai.retry.max-attempts=2 diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java index 3caf5fde..10c7afa0 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java +++ b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java @@ -33,8 +33,8 @@ public class OllamaTest { public void chatTest() { String model = "qwen3.5:2b"; - String prompt = "背景说明:你是一个研发工程师,擅长解决技术类问题。"; - String input = "请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"; + String prompt = "你是一个研发工程师,擅长解决技术类问题。"; + String input = "慢SQL问题分析思路"; // build chat-client @@ -60,8 +60,8 @@ public class OllamaTest { public void chatStreamTest() throws InterruptedException { String model = "qwen3.5:2b"; - String prompt = "背景说明:你是一个研发工程师,擅长解决技术类问题。"; - String input = "请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"; + String prompt = "你是一个研发工程师,擅长解决技术类问题。"; + String input = "慢SQL问题分析思路"; // build chat-client