spring-integration
БесплатноБез исполняемых скриптовНе проверенSpring Integration for Enterprise Integration Patterns (EIP) in Spring Boot 3.x. Covers Message Channels, Gateways, Transformers, Routers, Filters, Splitters…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Spring Integration
Full Reference: See adapters.md for File, HTTP, Kafka adapters, Error Handling, and Testing patterns.
Overview
┌─────────────────────────────────────────────────────────────────────┐
│ Spring Integration Flow │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ [Inbound] [Channel] [Transformer] [Channel] [Outbound] │
│ Adapter ──▶ ════════ ──▶ ┌─────────┐ ──▶ ════════ ──▶ Adapter │
│ (File, (Queue/ │ Convert │ (Direct/ (DB, │
│ HTTP, Direct) │ Enrich │ PubSub) Kafka, │
│ Kafka) └─────────┘ HTTP) │
│ │
└─────────────────────────────────────────────────────────────────────┘
Quick Start
<!-- pom.xml -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
</dependency>
@Configuration
@EnableIntegration
public class IntegrationConfig {
@Bean
public IntegrationFlow fileProcessingFlow() {
return IntegrationFlow
.from(Files.inboundAdapter(new File("/input"))
.patternFilter("*.csv"),
e -> e.poller(Pollers.fixedDelay(1000)))
.transform(Files.toStringTransformer())
.handle((payload, headers) -> {
System.out.println("Processing: " + payload);
return payload;
})
.get();
}
}
Message & Channels
// Message structure
Message<String> message = MessageBuilder
.withPayload("Hello Integration")
.setHeader("contentType", "text/plain")
.setHeader("priority", 1)
.setCorrelationId(UUID.randomUUID())
.build();
// Channel types
@Configuration
public class ChannelConfig {
// Direct Channel (point-to-point, synchronous)
@Bean
public DirectChannel orderChannel() {
return new DirectChannel();
}
// Queue Channel (point-to-point, async with buffer)
@Bean
public QueueChannel processingQueue() {
return new QueueChannel(100);
}
// PublishSubscribe Channel (broadcast to all subscribers)
@Bean
public PublishSubscribeChannel notificationChannel() {
return new PublishSubscribeChannel();
}
// Executor Channel (async with thread pool)
@Bean
public ExecutorChannel asyncChannel() {
return new ExecutorChannel(Executors.newFixedThreadPool(10));
}
}
Gateway (Entry Point)
@MessagingGateway
public interface OrderGateway {
@Gateway(requestChannel = "orderChannel")
void submitOrder(Order order);
@Gateway(requestChannel = "orderChannel", replyChannel = "orderResponseChannel")
OrderConfirmation submitOrderAndWait(Order order);
@Gateway(requestChannel = "orderChannel", replyTimeout = 5000)
@Async
CompletableFuture<OrderConfirmation> submitOrderAsync(Order order);
}
@Service
@RequiredArgsConstructor
public class OrderService {
private final OrderGateway orderGateway;
public OrderConfirmation createOrder(CreateOrderRequest request) {
Order order = mapToOrder(request);
return orderGateway.submitOrderAndWait(order);
}
}
Integration Flow DSL
@Bean
public IntegrationFlow orderFlow() {
return IntegrationFlow
.from("orderChannel")
// Validation
.filter(Order.class, order -> order.getTotal().compareTo(BigDecimal.ZERO) > 0,
f -> f.discardChannel("invalidOrderChannel"))
// Enrichment
.enrich(e -> e
.requestChannel("customerLookupChannel")
.propertyExpression("customer", "payload"))
// Transformation
.transform(Order.class, order -> {
order.setStatus(OrderStatus.VALIDATED);
return order;
})
// Routing
.<Order, String>route(order ->
order.getTotal().compareTo(new BigDecimal("1000")) > 0
? "highValueOrder" : "standardOrder",
r -> r
.subFlowMapping("highValueOrder", sf -> sf
.handle("priorityOrderHandler", "process"))
.subFlowMapping("standardOrder", sf -> sf
.handle("standardOrderHandler", "process")))
.handle("orderRepository", "save")
.get();
}
Splitter & Aggregator
@Bean
public IntegrationFlow batchOrderFlow() {
return IntegrationFlow
.from("batchOrderChannel")
// Split batch into individual orders
.split(BatchOrder.class, BatchOrder::getOrders)
.ch
Установить spring-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditВложенные файлы
FAQ
Что делает скилл spring-integration?
Spring Integration for Enterprise Integration Patterns (EIP) in Spring Boot 3.x. Covers Message Channels, Gateways, Transformers, Routers, Filters, Splitters, Aggregators, Adapters (File, JMS, Kafka, HTTP), and DSL. USE WHEN: user mentions "spring integration", "EIP", "enterprise integration patterns", "IntegrationFlow", "message channel", "gateway", "@MessagingGateway" DO NOT USE FOR: simple REST APIs - use Spring MVC, Kafka only - use `spring-kafka` skill, simple messaging - consider Spring Events
Как установить скилл spring-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spring-integration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic