code: public static void copyToClipboard(String string) {
          ClipboardContent content = new ClipboardContent();
          content.putString(string);
          Clipboard.getSystemClipboard().setContent(content);
          logger.info("copy '" + string + "' to clipboard");
      }
docs: 复制字符串至系统剪贴板
  
  @param string 需要复制的字符串