This commit is contained in:
HuangQing 2025-03-07 16:39:08 +08:00
parent b1c4ebb87c
commit dd9a184924
2 changed files with 27 additions and 30 deletions

1
.idea/vcs.xml generated
View File

@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -17,34 +17,30 @@ public class IndexHandler {
// 拼接服务器地址
String licenseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
StringBuffer html = new StringBuffer("<h3>使用说明Instructions for use</h3>");
html.append("<hr/>");
html.append("<h1>Hello,This is a Jrebel & JetBrains License Server!</h1>");
html.append("<p>License Server started at ").append(licenseUrl);
html.append("<p>JetBrains Activation address was: <span style='color:red'>").append(licenseUrl).append("/");
html.append("<p>JRebel 7.1 and earlier version Activation address was: <span style='color:red'>")
.append(licenseUrl).append("/{tokenname}")
.append("</span>, with any email.");
html.append("<p>JRebel 2018.1 and later version Activation address was: ")
.append(licenseUrl).append("/{guid}")
.append("(eg:<span style='color:red'>")
.append(licenseUrl).append("/").append(UUID.randomUUID())
.append("</span>), with any email.");
html.append("<hr/>");
html.append("<h1>Hello此地址是 Jrebel & JetBrains License Server!</h1>");
html.append("<p>JetBrains许可服务器激活地址 ").append(licenseUrl);
html.append("<p>JetBrains激活地址是: <span style='color:red'>").append(licenseUrl).append("/");
html.append("<p>JRebel 7.1 及旧版本激活地址: <span style='color:red'>")
.append(licenseUrl).append("/{tokenname}")
.append("</span>, 以及任意邮箱地址。");
html.append("<p>JRebel 2018.1+ 版本激活地址: ")
.append(licenseUrl).append("/{guid}")
.append("(例如:<span style='color:red'>")
.append(licenseUrl).append("/").append(UUID.randomUUID())
.append("</span>), 以及任意邮箱地址。");
String html = "<h3>使用说明Instructions for use</h3>" + "<hr/>" +
"<h1>Hello,This is a Jrebel & JetBrains License Server!</h1>" +
"<p>License Server started at " + licenseUrl +
"<p>JetBrains Activation address was: <span style='color:red'>" + licenseUrl + "/" +
"<p>JRebel 7.1 and earlier version Activation address was: <span style='color:red'>" +
licenseUrl + "/{tokenname}" +
"</span>, with any email." +
"<p>JRebel 2018.1 and later version Activation address was: " +
licenseUrl + "/{guid}" +
"(eg:<span style='color:red'>" +
licenseUrl + "/" + UUID.randomUUID() +
"</span>), with any email." +
"<hr/>" +
"<h1>Hello此地址是 Jrebel & JetBrains License Server!</h1>" +
"<p>JetBrains许可服务器激活地址 " + licenseUrl +
"<p>JetBrains激活地址是: <span style='color:red'>" + licenseUrl + "/" +
"<p>JRebel 7.1 及旧版本激活地址: <span style='color:red'>" +
licenseUrl + "/{tokenname}" +
"</span>, 以及任意邮箱地址。" +
"<p>JRebel 2018.1+ 版本激活地址: " +
licenseUrl + "/{guid}" +
"(例如:<span style='color:red'>" +
licenseUrl + "/" + UUID.randomUUID() +
"</span>), 以及任意邮箱地址。";
response.getWriter().println(html);
}