Spring Boot/Spring Batch 목표 아키텍처 정의 #4

Open
forge-bot wants to merge 8 commits from forge/BAIS-SPRING-ARC-001-attempt-1 into main
Showing only changes of commit 986e09a475 - Show all commits

View file

@ -0,0 +1,20 @@
package com.example.demo.controller;
import org.springframework.web.bind.annotation.*;
import com.example.demo.service.TransactionService;
import com.example.demo.dto.TransactionDTO;
@RestController
@RequestMapping("/api/transactions")
public class TransactionController {
private final TransactionService transactionService;
public TransactionController(TransactionService transactionService) {
this.transactionService = transactionService;
}
@PostMapping
public void createTransaction(@RequestBody TransactionDTO transactionDTO) {
transactionService.processTransaction(transactionDTO);
}
}