应该是调用window的命令行实现把,
public static void main(String[] args) throws IOException{ Runtime.getRuntime().exec("shutdown -s -t 0"); }
50,547
社区成员
85,621
社区内容
加载中
试试用AI创作助手写篇文章吧