分布式事物 seata

This commit is contained in:
GYJ
2025-02-24 20:31:58 +08:00
parent 641a33d27d
commit 95c07fcc1b
13 changed files with 184 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
package com.czg.controller;
import com.czg.account.service.TestService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author GYJoker
*/
@RestController
@RequestMapping("/test")
public class TestController {
@Resource
private TestService testService;
@RequestMapping("/hello")
public String hello() {
return testService.insertData();
}
}