Determine a stable version of the Spring Cloud-related environment

Source: Internet
Author: User
Tags java se

Developing and deploying the Spring Cloud MicroServices framework requires identifying the relevant environment versions of Spring cloud, mainly including: Spring Cloud, Spring Cloud Netflix, JDK, JRE, Java version, and more. And the configuration of the environment.

Now the latest version of Java 10, Spring Boot 2.0, Spring Cloud finchley.m9, but these versions are not very stable, and the related compatibility is not very good, the problem of the solution is relatively small.

Today, it took about a day to try out various versions of compatibility, as well as the use of deployment issues, finally determined the following version, relatively stable.

    • Spring Cloud:Edgware.SR3(http://projects.spring.io/spring-cloud/), which is associated with the spring Boot version, can be viewed on the website.
    • Spring Cloud Netflix:1.4.4.release
    • Spring Boot:1.5.10.release
    • Jdk:java SE Development Kit 8u162(http://www.oracle.com/technetwork/java/javase/downloads/ jdk8-downloads-2133151.html), also known as jdk1.8.0_162.
    • jre:server JRE (Java SE Runtime Environment) 8u161(http://www.oracle.com/technetwork/java/javase/downloads/ server-jre8-downloads-2133154.html)
    • Java version:1.8, which corresponds to the JDK,

If you use a different version, there are some problems, such as the following:

    • Springcloud exception (Euruka): Application Run failed Java.lang.NoSuchMethodError: Org.springframework.boot.builder.SpringApplicationBuilder
    • How to resolve Java.lang.noclassdeffounderror:javax/xml/bind/jaxbexception in Java 9
    • Com.sun.jersey.api.client.ClientHandlerException:java.net.ConnectException:Connection Refused:connect
    • Java.lang.noclassdeffounderror:javax/activation/datahandler
    • Unable to start embedded container; Nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException:Unable to start Embedded Tomcat
Server Configuration JRE Environment

Use the wget command to download the corresponding Server JRE on your website.

To create the installation directory:

sudo mkdir -p /usr/local/java

Unzip the file to the specified directory:

sudo tar -zxvf serverjre-9.0.1_linux-x64_bin.tar.gz -C /usr/local/java/ --strip-components=1

To edit a configuration file:

sudo vi /etc/profile

Add the following configuration to the configuration file:

# JRE configurationexportJAVA_HOME=/usr/local/javaexportJRE_HOME=${JAVA_HOME}exportCLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexportPATH=${JAVA_HOME}/bin:$PATH# End JDK configuration

Effective and test:

sourcejava -version
MAC Configuration JDK Environment

Download the corresponding Mac JDK version on the website.

After the direct installation is successful (directory: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk ).

To edit a configuration file:

sudo vi /etc/profile

Add the following configuration to the configuration file:

# JDK configurationexportJAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/HomeexportJRE_HOME=${JAVA_HOME}exportCLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexportPATH=${JAVA_HOME}/bin:$PATH# End JDK configuration

Effective and test:

sourcejava -version

IntelliJ idea choose to add a JDK:

IntelliJ idea modifies the JDK version of the current project:

Reference: CentOS 7 Installation Serverjre 9

Determine a stable version of the Spring Cloud-related environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.