๐ ๋น ๋ฅธ ๋ฌธ๋ฒ ๋ฐ API ํต์ฌ ์์ฝ(์นํธ์ํธ)์ด ํ์ํ์ ๊ฐ์?
์ค๋ฌด API ์กฐํ๋ฅผ ์ํ Spring AI ํต ๋ ํผ๋ฐ์ค ์นํธ์ํธ ๋ฐ๋ก๊ฐ๊ธฐ โ
0. ๐ Spring AI๋ ๋ฌด์์ด๊ณ ์ ํ์ํ๊ฐ์?
๊ธฐ์กด Spring Boot ๋ฐฑ์๋์ ChatGPT๋ Gemini ๊ฐ์ LLM์ ๋ถ์ด๋ ค๋ฉด, ๊ฐ๋ฐ์๊ฐ ์ง์ RestClient/WebClient๋ก ๋ณต์กํ HTTP JSON์ ์กฐ๋ฆฝํ๊ณ , ๋ชจ๋ธ(OpenAI, Anthropic, Google, Ollama)์ด ๋ฐ๋ ๋๋ง๋ค API ๊ท๊ฒฉ์ ์ ๋ถ ๋ฏ์ด๊ณ ์ณ์ผ ํ์ต๋๋ค.
๐ก Spring AI์ ์ญํ :
Spring์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ ๊ทผ์JdbcTemplate/JPA๋ก ์ถ์ํํ๋ฏ์ด, Spring AI๋ ๋ชจ๋ AI ๋ชจ๋ธ๊ณผ ๋ฒกํฐ DB๋ฅผ ๋จ์ผChatClient๋ฐVectorStore์ธํฐํ์ด์ค๋ก ํตํฉํ๋ ๊ณต์ Spring ์ํ๊ณ ํ๋ ์์ํฌ์ ๋๋ค. ์ค์ (application.yml) ํ ์ค๋ง ๋ฐ๊พธ๋ฉด ํด๋ผ์ฐ๋ GPT/Gemini์์ ๋ก์ปฌ Ollama๋ก ์ฝ๋๋ฅผ ํ ์ค๋ ๊ณ ์น์ง ์๊ณ ์ ํํ ์ ์์ต๋๋ค!
๐จ ํต์ฌ ์ฉ์ด 1๋ถ ๋ง์ ์ดํดํ๋ ์ผ์ ๋น์ ์ฌ์
| Spring AI ํต์ฌ ๊ฐ๋ | ํ ์ค ์ผ์ ๋น์ | ์ฌ์ด ์ค๋ช |
|---|---|---|
ChatClient | ๋ง๋ฅ AI ๋ฆฌ๋ชจ์ปจ (Fluent API) | WebClient์ฒ๋ผ .prompt().user(...).call().content() ์ฒด์ด๋์ผ๋ก ๋ชจ๋ LLM์ ์ผ๊ด๋๊ฒ ํธ์ถ |
Advisor | Spring Interceptor / AOP ํํฐ | AI ์์ฒญ ์ ํ์ ๋ํ ๊ธฐ์ต(ChatMemory), ์ฌ๋ด ๋ฌธ์ ๊ฒ์(RAG), ๋ก๊น
์ ์๋์ผ๋ก ๋ผ์ ๋ฃ๋ ๋ฏธ๋ค์จ์ด |
entity(MyRecord.class) | Jackson ์๋ JSON ๋ฒ์ญ๊ธฐ | AI์ ์ค๊ธ ๋ต๋ณ์ Java record DTO ๊ฐ์ฒด๋ก ์๋ ํ์ฑยท๋งคํํด ์ฃผ๋ Structured Output ๊ธฐ๋ฅ |
VectorStore & RAG | ์คํ๋ถ(Open Book) ์ํ | ์ฌ๋ด PDF/๋ฌธ์๋ฅผ ์๋ฒ ๋ฉํด PgVector ๋ฑ์ ์ ์ฅํด ๋๊ณ , ์ง๋ฌธ ์ ๊ด๋ จ ๊ตฌ์ ๋ง AI ํ๋กฌํํธ์ ์๋ ์ฒจ๋ถ |
@Tool (Tool Calling) | AI์๊ฒ ์ฅ์ด์ค Spring Bean ๋ฒํผ | AI๊ฐ ๊ณ์ฐ์ด๋ DB ์กฐํ๊ฐ ํ์ํ ๋ ๊ฐ๋ฐ์๊ฐ ๋ง๋ @Tool Java ๋ฉ์๋๋ฅผ ์ค์ค๋ก ํธ์ถํด ๊ฒฐ๊ณผ๋ฅผ ๋ฐ์๊ฐ |
ChatMemory | AI์ ๋จ๊ธฐยท์ฅ๊ธฐ ๋ฉ๋ชจ์ฅ | HTTP๋ ๋ฌด์ํ(Stateless)์ง๋ง conversationId๋ณ๋ก ์ด์ ๋ํ ๋ด์ญ์ ์๋ ๊ธฐ์ตยท์ฃผ์
|
1. ํ์ ์ฌ์ ์๊ฑด & ์์คํ ์๊ตฌ์ฌ์ (Prerequisites)
๐ป ์์คํ ์ค์น ๋ฐ ์คํ ์๊ตฌ์ฌ์ (System Requirements)
| ํญ๋ชฉ | ์ต์ ์ฌ์ (ํด๋ผ์ฐ๋ API ์์ฃผ) | ๊ถ์ฅ ์ฌ์ (๋ก์ปฌ Ollama & PgVector ๊ตฌ๋) | ๋น๊ณ |
|---|---|---|---|
| ์ด์์ฒด์ (OS) | Windows 10/11, macOS 13+, Linux | Windows 11, macOS (Apple Silicon), Ubuntu 22.04+ | Docker Desktop ์ค์น ๊ถ์ฅ |
| Java / Spring | Java 21 LTS / Spring Boot 3.4+ | Java 21~25 / Spring Boot 3.5+ ๋๋ 4.0+ | Spring AI 2.0.2 (GA) ๊ธฐ์ค Java 17 ์ด์ ํ์ |
| ๋ฉ๋ชจ๋ฆฌ (RAM) | 4 GB ์ด์ | 16 GB ~ 32 GB | ๋ก์ปฌ Ollama(8B ๋ชจ๋ธ) + Docker PgVector ๋์ ๊ตฌ๋ ์ 16GB+ ๊ถ์ฅ |
| ๋์คํฌ (Storage) | 2 GB ์ด์ | 20 GB ์ด์์ ๊ณ ์ SSD | Gradle ์บ์ ๋ฐ ๋ก์ปฌ ๋ชจ๋ธ ๊ฐ์ค์น ์ ์ฅ |
| ๋คํธ์ํฌ / ๋ฐํ์ | Gradle 8.10+ ๋๋ Maven 3.9+ | OpenAI/Gemini API ํค ๋๋ ๋ฌด๋ฃ ๋ก์ปฌ Ollama | ์๋ Ollama ๊ฐ์ด๋๋ก API ๋น์ฉ 0์ ์ค์ต ๊ฐ๋ฅ! |
๐ฆ ํ๋ก์ ํธ ์์ฑ (build.gradle & application.yml)
start.spring.io์์ Web, Spring AI (OpenAI / Ollama) ์์กด์ฑ์ ์ ํํ๊ฑฐ๋, ๊ธฐ์กด ํ๋ก์ ํธ build.gradle์ Spring AI 2.0.2 BOM์ ์ถ๊ฐํฉ๋๋ค.
// build.gradle (Groovy DSL)
plugins {
id 'java'
id 'org.springframework.boot' version '3.5.0'
id 'io.spring.dependency-management' version '1.1.7'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
ext {
set('springAiVersion', "2.0.2") // Spring AI 2.0.x ์ต์ ์์ ํ(GA) ๋ฒ์
}
dependencyManagement {
imports {
mavenBom "org.springframework.ai:spring-ai-bom:${springAiVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
// OpenAI ํธํ API (OpenAI, Gemini OpenAI-compat, vLLM ๋ฑ)
implementation 'org.springframework.ai:spring-ai-starter-model-openai'
// (์ ํ) ๋ฌด๋ฃ ๋ก์ปฌ AI ์ค์ต์ฉ Ollama ์คํํฐ
implementation 'org.springframework.ai:spring-ai-starter-model-ollama'
}
๐ ๋ฌด๋ฃ ๋ก์ปฌ AI(Ollama) ๋๋ ํด๋ผ์ฐ๋ API ํค ์ค์ (application.yml)
์ ๋ฃ API ํค๊ฐ ์๋ค๋ฉด ํฐ๋ฏธ๋์์ Ollama๋ฅผ ์ผ๊ณ ollama pull llama3.2๋ง ์คํํ๋ฉด ๋น์ฉ 0์์ผ๋ก ๋ชจ๋ ์์ ๋ฅผ ์คํํ ์ ์์ต๋๋ค.
# src/main/resources/application.yml
spring:
application:
name: spring-ai-masterclass
ai:
# ์ต์
A: OpenAI ์ฌ์ฉ ์ (ํ๊ฒฝ๋ณ์ OPENAI_API_KEY ์ฃผ์
๊ถ์ฅ)
openai:
api-key: ${OPENAI_API_KEY:demo-key}
chat:
options:
model: gpt-4o-mini
temperature: 0.3
# ์ต์
B: ๋ฌด๋ฃ ๋ก์ปฌ Ollama ์ฌ์ฉ ์
ollama:
base-url: http://localhost:11434
chat:
options:
model: llama3.2
2. ์ ์ฒด ์ํคํ ์ฒ & 5๋จ๊ณ ํ์ต ๋ก๋๋งต
flowchart TD
p1["[1๊ฐ] ChatClient & Structured Output<br/>Fluent API๋ก LLM ํธ์ถํ๊ณ Java Record๋ก ํ์ฑ"]
p2["[2๊ฐ] ChatMemory & Advisor<br/>conversationId ๊ธฐ๋ฐ ๋ฉํฐํด ๋ํ ๊ธฐ์ต ๊ตฌํ"]
p3["[3๊ฐ] VectorStore & RAG<br/>์ฌ๋ด ๋ฌธ์๋ฅผ ์๋ฒ ๋ฉํด QuestionAnswerAdvisor๋ก ์คํ๋ถ ๋ต๋ณ"]
p4["[4๊ฐ] @Tool ํจ์ ํธ์ถ (Tool Calling)<br/>AI๊ฐ Spring Service ๋ฉ์๋๋ฅผ ์ง์ ํธ์ถํด DB/API ์กฐํ"]
p5["[5๊ฐ] SSE ์คํธ๋ฆฌ๋ฐ & ํ๋ก๋์
์๋น<br/>Flux<String> ์ค์๊ฐ ํ์ดํ ์๋ต๊ณผ Micrometer ๊ด์ธก์ฑ"]
p1 --> p2 --> p3 --> p4 --> p5
3. [1๊ฐ] ChatClient ๊ธฐ์ด & Java Record ์ ํ ๋ฐ์ดํฐ ์ถ์ถ
[์ค์ต 1-1] ์ฒซ ๋ฒ์งธ AI ์ปจํธ๋กค๋ฌ & entity() ๊ตฌ์กฐํ ์ถ๋ ฅ
Spring AI 2.0์์๋ ChatClient.Builder๋ฅผ ์ฃผ์
๋ฐ์ ๋น(Bean)์ด๋ ์ปจํธ๋กค๋ฌ์์ ์ง๊ด์ ์ธ Fluent API๋ฅผ ์ฌ์ฉํฉ๋๋ค.
package com.luckytech.ai.controller;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/api/ai")
public class BasicAiController {
private final ChatClient chatClient;
// Spring Boot๊ฐ ์๋ ๊ตฌ์ฑํ ChatClient.Builder ์ฃผ์
public BasicAiController(ChatClient.Builder builder) {
this.chatClient = builder
.defaultSystem("๋น์ ์ ์น์ ํ๊ณ ์ ํํ ๋ฐฑ์๋ ์ํคํ
ํธ ์ด์์คํดํธ์
๋๋ค.")
.build();
}
// 1. ๊ธฐ๋ณธ ํ
์คํธ ์๋ต
@GetMapping("/ask")
public String ask(@RequestParam(defaultValue = "Spring AI์ ์ฅ์ ์ 2์ค๋ก ์์ฝํด์ค") String q) {
return chatClient.prompt()
.user(q)
.call()
.content();
}
// 2. Java Record๋ก JSON ๊ตฌ์กฐํ ์ถ๋ ฅ ์๋ ๋งคํ! (Structured Output)
public record BookRecommendation(String title, String author, List<String> keyTopics, String reason) {}
@GetMapping("/recommend")
public BookRecommendation recommend(@RequestParam(defaultValue = "MSA ์ํคํ
์ฒ") String topic) {
return chatClient.prompt()
.user(u -> u.text("{topic} ๋ถ์ผ์ ํ๋
์ 1๊ถ์ ์ถ์ฒํด์ค.").param("topic", topic))
.call()
.entity(BookRecommendation.class); // ๋ด๋ถ์ ์ผ๋ก JSON Schema๋ฅผ ์๋ ์์ฑํด AI์๊ฒ ์ ๋ฌ & ํ์ฑ!
}
}
# ์คํ ํ ํ
์คํธ
curl "http://localhost:8080/api/ai/recommend?topic=Kafka"
# ์์ ์ถ๋ ฅ (๊น๋ํ JSON!):
# {
# "title": "Kafka: The Definitive Guide",
# "author": "Gwen Shapira ์ธ",
# "keyTopics": ["ํํฐ์
์ํคํ
์ฒ", "์ปจ์๋จธ ๊ทธ๋ฃน", "์ ํํ ํ ๋ฒ(EOS)"],
# "reason": "์นดํ์นด ๋ด๋ถ ๋์ ์๋ฆฌ์ ์ค๋ฌด ์ด์ ํจํด์ ๊ฐ์ฅ ์ฒด๊ณ์ ์ผ๋ก ๋ค๋ฃฌ ํ์ค์์
๋๋ค."
# }
4. [2๊ฐ] ๋ฉํฐํด ๋ํ ๊ธฐ์ต (ChatMemory + Advisor)
LLM์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ด์ ์ง๋ฌธ์ ๊ธฐ์ตํ์ง ๋ชปํฉ๋๋ค. Spring AI์ **MessageChatMemoryAdvisor**๋ฅผ ์ฐ๊ฒฐํ๋ฉด ์ฌ์ฉ์๋ณ(conversationId) ๋ํ ํ์คํ ๋ฆฌ๋ฅผ ์๋์ผ๋ก ์ ์งํฉ๋๋ค.
package com.luckytech.ai.service;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.client.advisor.MessageChatMemoryAdvisor;
import org.springframework.ai.chat.memory.ChatMemory;
import org.springframework.ai.chat.memory.MessageWindowChatMemory;
import org.springframework.stereotype.Service;
@Service
public class StatefulChatService {
private final ChatClient chatClient;
public StatefulChatService(ChatClient.Builder builder) {
// ์ต๊ทผ 20๊ฐ ๋ฉ์์ง๋ฅผ ๋ฉ๋ชจ๋ฆฌ์ ๋ณด๊ดํ๋ ์๋์ฐ ๋ฉ๋ชจ๋ฆฌ
ChatMemory chatMemory = MessageWindowChatMemory.builder()
.maxMessages(20)
.build();
this.chatClient = builder
.defaultAdvisors(MessageChatMemoryAdvisor.builder(chatMemory).build())
.build();
}
public String chat(String sessionId, String userMessage) {
return chatClient.prompt()
.user(userMessage)
// ์ธ์
ID๋ฅผ Advisor ํ๋ผ๋ฏธํฐ๋ก ๋๊ธฐ๋ฉด ํด๋น ์ฌ์ฉ์์ ๋ํ๋ง ๋ถ๋ฆฌ ๊ธฐ์ต!
.advisors(a -> a.param(ChatMemory.CONVERSATION_ID, sessionId))
.call()
.content();
}
}
5. [3๊ฐ] ์ฌ๋ด ๋ฌธ์ ๊ธฐ๋ฐ RAG (VectorStore & QuestionAnswerAdvisor)
์ฌ๋ด ๊ท์ ์ด๋ ์ต์ ๋งค๋ด์ผ์ VectorStore์ ์ ์ฌํ๊ณ , **QuestionAnswerAdvisor**๋ฅผ ๋ถ์ด๋ฉด ๋จ 3์ค์ ์ฝ๋๋ก ์คํ๋ถ RAG ์์คํ
์ด ์์ฑ๋ฉ๋๋ค.
package com.luckytech.ai.rag;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.client.advisor.vectorstore.QuestionAnswerAdvisor;
import org.springframework.ai.document.Document;
import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.vectorstore.SearchRequest;
import org.springframework.ai.vectorstore.SimpleVectorStore;
import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;
import java.util.List;
@Configuration
class RagConfig {
// ์ค์ต์ฉ ์ธ๋ฉ๋ชจ๋ฆฌ VectorStore (ํ๋ก๋์
์์๋ spring-ai-starter-vector-store-pgvector ์ฌ์ฉ)
@Bean
VectorStore vectorStore(EmbeddingModel embeddingModel) {
SimpleVectorStore store = SimpleVectorStore.builder(embeddingModel).build();
// ์ฌ๋ด ๊ท์ ๋ฌธ์ ์ ์ฌ (์ค๋ฌด์์๋ TikaDocumentReader + TokenTextSplitter ์ฌ์ฉ)
store.add(List.of(
new Document("์ฌ๋ด ์ถ์ฅ ์๋ฐ๋น ์ํ์ ์ 1๋ฐ๋น ์์ธ 18๋ง์, ์ง๋ฐฉ 13๋ง์์
๋๋ค."),
new Document("์ฌํ๊ทผ๋ฌด ์ ์ฒญ์ ์ ๋ ์คํ 5์๊น์ง ์ฌ๋ด ํฌํธ์์ ํ์ฅ ์น์ธ์ ๋ฐ์์ผ ํฉ๋๋ค.")
));
return store;
}
}
@Service
public class PolicyRagService {
private final ChatClient ragClient;
public PolicyRagService(ChatClient.Builder builder, VectorStore vectorStore) {
this.ragClient = builder
.defaultAdvisors(
QuestionAnswerAdvisor.builder(vectorStore)
.searchRequest(SearchRequest.builder().topK(3).similarityThreshold(0.7).build())
.build()
)
.build();
}
public String askCompanyPolicy(String question) {
return ragClient.prompt()
.user(question)
.call()
.content();
}
}
6. [4๊ฐ] AI์๊ฒ ์๋ฐ ๋ฌ์์ฃผ๊ธฐ (@Tool Tool Calling)
Spring AI์์๋ ์ผ๋ฐ Spring Bean ๋ฉ์๋์ @Tool ์ด๋
ธํ
์ด์
๋ง ๋ถ์ด๋ฉด AI๊ฐ ํ์ํ ๋ ์ค์ค๋ก ์ธ์๋ฅผ ์ฑ์ ๋ฉ์๋๋ฅผ ์คํํฉ๋๋ค.
package com.luckytech.ai.tools;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Component
class OrderTools {
@Tool(description = "์ฃผ๋ฌธ ๋ฒํธ(orderId)๋ก ํ์ฌ ๋ฐฐ์ก ์ํ์ ์์ ๋์ฐฉ์ผ์ ์กฐํํฉ๋๋ค.")
public String getOrderStatus(
@ToolParam(description = "์กฐํํ ์ฃผ๋ฌธ ๋ฒํธ (์: ORD-2026-001)") String orderId) {
// ์ค๋ฌด์์๋ ์ฌ๊ธฐ์ OrderRepository.findById(orderId) ํธ์ถ
return switch (orderId) {
case "ORD-2026-001" -> "๋ฐฐ์ก ์ค (๋ด์ผ ์คํ ๋์ฐฉ ์์ )";
case "ORD-2026-002" -> "๊ฒฐ์ ์๋ฃ (์ถ๊ณ ์ค๋น ์ค)";
default -> "ํด๋น ์ฃผ๋ฌธ ๋ฒํธ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.";
};
}
}
@Service
public class SupportAgentService {
private final ChatClient agentClient;
private final OrderTools orderTools;
public SupportAgentService(ChatClient.Builder builder, OrderTools orderTools) {
this.agentClient = builder.build();
this.orderTools = orderTools;
}
public String handleInquiry(String customerMessage) {
return agentClient.prompt()
.user(customerMessage)
.tools(orderTools) // AI ์์ OrderTools ๋ฆฌ๋ชจ์ปจ ์ฅ์ด์ฃผ๊ธฐ!
.call()
.content();
}
}
๋์ ์๋ฆฌ: ๊ณ ๊ฐ์ด
"๋ด ์ฃผ๋ฌธ ORD-2026-001 ์ธ์ ์?"๋ผ๊ณ ๋ฌผ์ผ๋ฉด, AI๊ฐ ๋จผ์ OrderTools.getOrderStatus("ORD-2026-001")์คํ์ ์์ฒญํ๊ณ Spring AI๊ฐ ๋ฉ์๋๋ฅผ ์คํํด ์ค ๋ค, ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ๋ฐํ์ผ๋ก ์น์ ํ ์ต์ข ๋ต๋ณ์ ์์ฑํฉ๋๋ค!
7. [5๊ฐ] ์ค์๊ฐ SSE ์คํธ๋ฆฌ๋ฐ ์๋น & ํ๋ก๋์ ์ฒดํฌ๋ฆฌ์คํธ
โ Flux<String> ๊ธฐ๋ฐ ์ค์๊ฐ ํ์ดํ(Streaming) API
@GetMapping(value = "/stream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux<String> streamAnswer(@RequestParam String q) {
return chatClient.prompt()
.user(q)
.stream() // .call() ๋์ .stream() ์ฌ์ฉ!
.content(); // ํ ํฐ์ด ์์ฑ๋๋ ์ฆ์ ๋ธ๋ผ์ฐ์ ๋ก SSE ํธ์
}
๐ก๏ธ ํ๋ก๋์ ์ค์ ์ฒดํฌ๋ฆฌ์คํธ
- VectorStore๋ ๋ฐ๋์ ์๊ตฌ DB ์ฌ์ฉ:
SimpleVectorStore๋ ์ฌ์์ ์ ๋ฐ์ดํฐ๊ฐ ์ฌ๋ผ์ง๋๋ค. ํ๋ก๋์ ์์๋ PostgreSQL + pgvector(spring-ai-starter-vector-store-pgvector) ๋๋ Qdrant/Milvus๋ฅผ ์ฌ์ฉํ์ธ์.
- ํ๋กฌํํธ ์ธ์ ์
๋ฐ ๋น์ฉ ๋ฐฉ์ด (
SafeGuardAdvisor):SafeGuardAdvisor๋ฅผ ๋ฑ๋กํด ๊ธ์ง์ด/๋ฏผ๊ฐ ํค์๋๋ฅผ ์ฌ์ ์ฐจ๋จํ๊ณ ,maxTokens์temperature๋ฅผ ๋ช ์ํด ๋ฌดํ ํ ํฐ ๊ณผ๊ธ์ ๋ฐฉ์งํ์ธ์.
- ๊ด์ธก์ฑ(Observability) ํ์ฑํ:
spring-boot-starter-actuator์ Micrometer๋ฅผ ํจ๊ป ์ฐ๋ฉดgen_ai.client.token.usage๋ฑ LLM ํ ํฐ ์ฌ์ฉ๋๊ณผ ์๋ต ์ง์ฐ์ Grafana/Prometheus์์ ์๋์ผ๋ก ์ถ์ ํ ์ ์์ต๋๋ค.
- ์ธ๋ถ ๋๊ตฌ ์ฐ๋์ MCP(Model Context Protocol) ๊ณ ๋ ค:
- ์ฌ๋ฌ ๋ง์ดํฌ๋ก์๋น์ค๋ GitHub/Slack/DB ๋๊ตฌ๋ฅผ ์ฌ์ฌ์ฉํ๋ ค๋ฉด Spring AI์ MCP Server/Client Starter๋ฅผ ํตํด ํ์ค ํ๋กํ ์ฝ๋ก ๋๊ตฌ๋ฅผ ๋ ธ์ถํ์ธ์.
์๊ฒฌ ๋ฐ ์ง๋ฌธ
0์์ง ๋ฑ๋ก๋ ์๊ฒฌ์ด ์์ต๋๋ค. ์ฒซ ๋ฒ์งธ ๋๊ธ์ ๋จ๊ฒจ๋ณด์ธ์!
๋๊ธ ์์
๋๊ธ ์ญ์