新火炬后端单体项目初始化代码
zhangherong
2025-06-13 d7f212d555f92959666ce5a02060ac085531b99b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.jeecg.modules.sap.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.sap.service.SAPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@Api(tags = "SAP集成测试")
@RestController
@RequestMapping("/sap/client")
@Slf4j
public class SAPTestController {
    @Autowired
    private SAPService sapService;
 
    @ApiOperation(value = "SAP集成测试-测试接口", notes = "SAP集成测试-测试接口")
    @GetMapping("/test")
    public Result<?> test() {
        String test = sapService.test();
        return Result.ok(test);
    }
}