package com.qianwen.license.controller;
|
|
import java.util.ArrayList;
|
import java.util.Arrays;
|
|
import org.apache.commons.lang3.StringUtils;
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.ui.Model;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.qianwen.license.common.License;
|
import com.qianwen.license.common.LicenseCreator;
|
import com.qianwen.license.common.LicenseExtraModel;
|
import com.qianwen.license.dto.LicenseCreateDTO;
|
|
|
@Controller
|
public class IndexController {
|
private static Logger logger = LoggerFactory.getLogger(IndexController.class);
|
|
|
@GetMapping("index")
|
public String index(Model model) {
|
model.addAttribute("title", "Hello, Thymeleaf!"); // 将数据添加到模型中
|
return "index";
|
}
|
}
|