From 2eaee4926f9c080aa7d10570a0842047be9da92a Mon Sep 17 00:00:00 2001 From: chickenlj Date: Fri, 3 Jan 2025 09:44:11 +0800 Subject: [PATCH] update mcp example --- .../ai/mcp/samples/filesystem/Application.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spring-ai-alibaba-mcp-example/filesystem/src/main/java/org/springframework/ai/mcp/samples/filesystem/Application.java b/spring-ai-alibaba-mcp-example/filesystem/src/main/java/org/springframework/ai/mcp/samples/filesystem/Application.java index 0f8706e..9a72cf8 100644 --- a/spring-ai-alibaba-mcp-example/filesystem/src/main/java/org/springframework/ai/mcp/samples/filesystem/Application.java +++ b/spring-ai-alibaba-mcp-example/filesystem/src/main/java/org/springframework/ai/mcp/samples/filesystem/Application.java @@ -1,13 +1,9 @@ package org.springframework.ai.mcp.samples.filesystem; -import java.io.File; -import java.io.IOException; import java.nio.file.Paths; import java.time.Duration; import java.util.List; -import com.aliyuncs.utils.StringUtils; - import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.mcp.client.McpClient; import org.springframework.ai.mcp.client.McpSyncClient; @@ -19,8 +15,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.Bean; -import org.springframework.core.io.ClassPathResource; -import org.springframework.core.io.Resource; +import org.springframework.util.StringUtils; @SpringBootApplication public class Application {