1.
430 /Applications/Android Studio.app/Contents/gradle/gradle-2.8/bin/gradle -v
434 mkdir gradle01
435 cd gradle01
437 /Applications/Android Studio.app/Contents/gradle/gradle-2.8/bin/gradle init --type java-application
build.gralde
mainClassName = 'test.HelloWorld'
448 /Applications/Android Studio.app/Contents/gradle/gradle-2.8/bin/gradle run
457 export PATH=$PATH:/Applications/Android Studio.app/Contents/gradle/gradle-2.8/bin/
460 gradle -v
https://jingyan.baidu.com/article/fec7a1e5be0be21190b4e7da.html
配置国内镜像
https://blog.csdn.net/u012184539/article/details/98962161
android studio下载
eclipse jee下载
https://blog.csdn.net/x_iya/article/details/65626628
2.java web
tomcat下载
创建web
https://www.cnblogs.com/zzlback/p/8552622.html
3.springmvc
https://github.com/davenkin/springmvc4-helloworld/
import org.springframework.web.bind.annotation.ResponseBody; @RequestMapping("/") @Controller() public class HomeController { @ResponseBody @RequestMapping("/hello") public String hello() { return "index"; } }
https://blog.csdn.net/long_yi_1994/article/details/80274246
4.jdk
如果网不好,可以到我的百度网盘下载 http://pan.baidu.com/s/1hrK0X4w
二、安装
一路傻瓜式安装,下一步下一步
三、配置环境
使用命令打开./bash_profile文件
vim ~/.bash_profile
配置环境
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME PATH CLASSPATH
https://blog.csdn.net/u010669261/article/details/70768965
5.maven
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
https://www.cnblogs.com/happyday56/p/8968328.html
https://www.cnblogs.com/pushuang/p/7106788.html
gradle
allprojects{
repositories {
def ALIYUN_REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public'
def ALIYUN_JCENTER_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
all { ArtifactRepository repo ->
if(repo instanceof MavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL."
remove repo
}
if (url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_JCENTER_URL."
remove repo
}
}
}
maven {
url ALIYUN_REPOSITORY_URL
url ALIYUN_JCENTER_URL
}
}
}