干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2023-03-10 58d42ccf875b120f40fddce63752298e916e0b0b
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
28
29
package org.jeecg.modules.dry.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.modules.dry.entity.DryHelloEntity;
import org.jeecg.modules.dry.service.IDryHelloService;
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;
import lombok.extern.slf4j.Slf4j;
 
@Api(tags = "dry示例")
@RestController
@RequestMapping("/dry")
@Slf4j
public class DryHelloController {
 
    @Autowired
    private IDryHelloService jeecgHelloService;
 
    @ApiOperation(value = "hello", notes = "对外服务接口")
    @GetMapping(value = "/hello")
    public String sayHello() {
        log.info(" ---我被调用了--- ");
        return jeecgHelloService.hello();
    }
 
}