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

 

 ​配置国内镜像

 android studio下载

 

eclipse jee下载

 2.java web

tomcat下载

创建web

 

3.springmvc

 

 



import org.springframework.web.bind.annotation.ResponseBody;


@RequestMapping("/")
@Controller()
public class HomeController {
@ResponseBody
@RequestMapping("/hello")
public String hello() {
return "index";
}
}


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 


 

 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>

 

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
}
}
}


​https://www.jianshu.com/p/32bc688e1b69​