version-1.1

pull/1/head
dyh 3 years ago
parent 4e3d040a10
commit 0725bae845

@ -0,0 +1,22 @@
package com.kob.backend.controller.pk;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/pk/")
public class BotInfoController {
@RequestMapping("getbotinfo/")
public Map<String, String> getBotInfor()
{
Map<String, String> bot1 = new HashMap<>();
bot1.put("name", "apple");
bot1.put("rating", "1500");
return bot1;
}
}

@ -0,0 +1,15 @@
package com.kob.backend.controller.pk;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class IndexController {
@RequestMapping("")
public String index()
{
return "pk/index.html";
}
}

@ -22,6 +22,6 @@ spring.thymeleaf.prefix=classpath:/templates/
# 在构建 URL 时添加到视图名称后的后缀(默认值: .html # 在构建 URL 时添加到视图名称后的后缀(默认值: .html
spring.thymeleaf.suffix=.html spring.thymeleaf.suffix=.html
# 应用服务 WEB 访问端口 # 应用服务 WEB 访问端口
server.port=8080 server.port=3000

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div style="text-align: center">
<img src="/image/icon.png" alt="">
</div>
</body>
</html>
Loading…
Cancel
Save