LAPTOP-KB9HII50\70708 2 年 前
コミット
5213e0a14b

+ 6 - 4
svr/svr-cloud-device/src/main/java/com/yihu/jw/care/endpoint/TestController.java

@ -6,16 +6,18 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.web.bind.annotation.*;
/**
 * 测试接口
 * 宇视人脸数据测试接口
 * Created by yeshijie on 2022/5/25.
 */
@RestController
@RequestMapping(value = "/test",produces = "application/json")
@Api(value = "测试接口", description = "测试接口")
public class TestController extends BaseController {
@Profile({"hzprod"})
@RequestMapping(value = "/netDevTest",produces = "application/json")
@Api(value = "宇视人脸数据测试接口", description = "宇视人脸数据测试接口")
public class NetdevTestController extends BaseController {
    @Autowired
    private NetDevSdkService netDevSdkService;

+ 2 - 0
svr/svr-cloud-device/src/main/java/com/yihu/jw/care/netdevsdk/NetDevSdkService.java

@ -44,6 +44,7 @@ import com.yihu.jw.care.netdevsdk.util.Common;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
@ -59,6 +60,7 @@ import java.util.Vector;
 * Created by yeshijie on 2022/5/19.
 */
@Service
@Profile({"hzprod"})
public class NetDevSdkService {
    private static final Logger logger = LoggerFactory.getLogger(NetDevSdkService.class);