fix(HTTPServer.java): Bug fixes

This commit is contained in:
Your Name
2024-10-21 15:29:04 +08:00
parent 24e2845689
commit 192a0ac085
13 changed files with 185 additions and 61 deletions
+9 -3
View File
@@ -1,7 +1,13 @@
import com.qi4l.JYso.LdapServer;
public class Main {
public static void main(String[] args) {
System.out.println(LdapServer.class.getPackage().getName() + ".template.echo." + "WindowsEcho");
String input = "org/apache/myfaces/core/service/IoServiceListenerSupport";
int lastIndex = input.lastIndexOf('/');
if (lastIndex != -1) {
String result = input.substring(lastIndex + 1);
System.out.println(result);
} else {
// 如果没有'/'字符,则直接打印原字符串
System.out.println(input);
}
}
}