mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-22 06:50:42 +08:00
fix(HTTPServer.java): Bug fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user