Dubbo upgrade 2.7 small test

Dubbo2.7 has very little information other than the official documents. Since the dubbo version in the project will be upgraded to the latest version later, so use a simple test to test it first (the test is this https ://www.cnblogs.com/sheng-yang/p/11307199.html).

The new features of 2.7 (metadata center, configuration center…) are not used in the test.

The main changes are:

1, pom file

p>

com.alibabaChange toorg.apache.dubbo

2. xml file

Use of the new version:

<< /span>beans xmlns= "http://www.springframework.org/schema/beans"

xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo
="http://dubbo.apache.org/schema/dubbo"
xsi:schemaLocation
="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd"
>

provider module:

share picture

Dependencies used in the test:

 <dependencies>

<dependency >
<groupId >com.dubbo.apigroupId>
<artifactId >apiartifactId>
<version >1.0-SNAPSHOTversion>
dependency>

<dependency >
<groupId >org.apache.dubbogroupId>
<artifactId >dubboartifactId>
<version >2.7.3version>
dependency>

<dependency >
<groupId >org.springframeworkgroupId>
<artifactId >spring-contextartifactId>
<version >4.3.10.RELEASEversion>
dependency>

<dependency >
<groupId >org.springframeworkgroupId>
<artifactId >spring-coreartifactId>
<version >4.3.10.RELEASEversion>
dependency>

<dependency >
<groupId >io.nettygroupId>
<artifactId >netty-allartifactId>
<version >4.1.34.Finalversion>
dependency>

<dependency >
<groupId >com.101tecgroupId>
<artifactId >zkclientartifactId>
<version >0.2version>
dependency>

<dependency >
<groupId >org.apache.curatorgroupId>
<artifactId >curator-frameworkartifactId>
<version >2.12.0version>
dependency>

<dependency >
<groupId >org.apache.curatorgroupId>
<artifactId >curator-recipesartifactId>
<version >2.8.0version>
dependency>

<dependency >
<groupId >org.apache.zookeepergroupId>
<artifactId >zookeeperartifactId>
<version >3.4.9version>
dependency>
dependencies>

Here we must pay attention to the version matching problem. I used the curator-recipes version before If it is too high and it makes a mistake, it will be no problem to change to a low version.

Turn on zookeeper, run ServiceTest, start the service, and view it in dubbo-ops

(The installation method of dubbo-admin can be found at https://www.cnblogs.com/sheng- yang/p/11508389.html)

share picture

Description:

If you are running on a virtual machine, you can write an execution script, package the project, copy it to the virtual machine, decompress it, and run the script file

Building a dubbo environment on Linux, this article is quite comprehensive https://www.cnblogs.com/sunnyplab/p/9546454.html (not for the latest version, but most of them can be used for reference) )

com.alibabaChange toorg.apache.dubbo< /code>

<beans xmlns="http://www.springframework.org/schema/beans" 

xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo
="http://dubbo.apache.org/schema/dubbo"
xsi:schemaLocation
="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd"
>

 <dependencies >

<dependency >
<groupId >com.dubbo.apigroupId>
<artifactId >apiartifactId>
<version >1.0-SNAPSHOTversion>
dependency>

<dependency >
<groupId >org.apache.dubbogroupId>
<artifactId >dubboartifactId>
<version >2.7.3version>
dependency>

<dependency >
<groupId >org.springframeworkgroupId>
<artifactId >spring-contextartifactId>
<version >4.3.10.RELEASEversion>
dependency>

<dependency >
<groupId >org.springframeworkgroupId>
<artifactId >spring-coreartifactId>
<version >4.3.10.RELEASEversion>
dependency>

<dependency >
<groupId >io.nettygroupId>
<artifactId >netty-allartifactId>
<version >4.1.34.Finalversion>
dependency>

<dependency >
<groupId >com.101tecgroupId>
<artifactId >zkclientartifactId>
<version >0.2version>
dependency>

<dependency >
<groupId >org.apache.curatorgroupId>
<artifactId >curator-frameworkartifactId>
<version >2.12.0version>
dependency>

<dependency >
<groupId >org.apache.curatorgroupId>
<artifactId >curator-recipesartifactId>
<version >2.8.0version>
dependency>

<dependency >
<groupId >org.apache.zookeepergroupId>
<artifactId >zookeeperartifactId>
<version >3.4.9version>
dependency>
dependencies>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 461 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.