package com.qianwen.license.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import com.alibaba.fastjson.JSONObject; @RestController public class LicenseLocalTestController { private static Logger logger = LoggerFactory.getLogger(LicenseLocalTestController.class); @GetMapping("check") public JSONObject generateLicense() { JSONObject result = new JSONObject(); try { logger.info("证书正常通过"); result.put("success", true); }catch(Exception e) { logger.error("生成证书失败",e); result.put("success", false); result.put("msg", e.getMessage()); } return result; } }