This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=======================================================================# | |
# System Supported: CentOS 6+ / Debian 7+ / Ubuntu 12+ # | |
# Description: L2TP VPN Auto Installer # | |
# Author: Teddysun <[email protected]> # | |
# Intro: https://teddysun.com/448.html # | |
#=======================================================================# | |
cur_dir=`pwd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 使用栈存储遍历过的节点,依次 pop 出来进行处理。 | |
* 注意 reverse 操作,保证了遍历从左子节点到右子节点。 | |
* @Author MatthewLQM | |
*/ | |
private static void iterativeDFS(Node root) { | |
Deque<Node> stack = new ArrayDeque<Node>(); | |
stack.push(root); | |
while (!stack.isEmpty()) { | |
Node node = stack.pop(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
解决方案:git add -f gradle/wrapper/gradle-wrapper.jar | |
参考地址:https://stackoverflow.com/questions/29805622/could-not-find-or-load-main-class-org-gradle-wrapper-gradlewrappermain/31622432#31622432 |