STS安装

作者: 面包石头 | 来源:发表于2017-09-18 12:09 被阅读111次

下载STS

http://spring.io/tools/sts/all,根据自己的电脑选择合适的OS。

安装JDK

JAVA_HOME=/opt/java/jdk1.8.0_144
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
# If your system just has one jdk, use this line
#PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
# If your system has multi jdks, use this line
export PATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/bin
##

打开STS

  • 新建一个Maven Project
  • 在pom.xml中加入如下
 <dependencies>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>4.3.11.RELEASE</version>
        <scope>runtime</scope>
    </dependency>
</dependencies>

相关文章

网友评论

      本文标题:STS安装

      本文链接:https://www.haomeiwen.com/subject/bvavsxtx.html