2018-08-01 Spring-boot, dubbo, multiple-modules, zoo-keeper(1)

Background

Currently, we use Dubbo + Zoo-keeper as the framework for service discovery.
We need different teammates to work on different part of the code, while sharing the same common-library. So we need to investigate the way to manage a project with multiple modules.
To simplify the developing, we also use Spring-boot as the foundation, Maven as the management tool.

Step 1 Create the parent project

  1. Create the folder-structure for the parent-project. The parent-project just works as a container for the modules
E:\Downloads\documents\STS_projects\justProject>tree . /f
卷 Tools 的文件夹 PATH 列表
卷序列号为 E885-5830
E:\DOWNLOADS\DOCUMENTS\STS_PROJECTS\JUSTPROJECT
│  pom.xml
│
├─common_api
├─consumer
└─provider
  1. Create the pom.xml for the parent-project, declare it to be a spring-boot project.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.justproject.example</groupId>
    <artifactId>parentproject</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.7.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
</project>
  1. Compile the parent-project for a try. Currently the empty project can also be compiled.
E:\Downloads\documents\STS_projects\justProject>mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.justproject.example:parentproject >----------------
[INFO] Building parentproject 1.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parentproject ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.058 s
[INFO] Finished at: 2018-08-01T10:16:50+08:00
[INFO] ------------------------------------------------------------------------



E:\Downloads\documents\STS_projects\justProject>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.justproject.example:parentproject >----------------
[INFO] Building parentproject 1.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.196 s
[INFO] Finished at: 2018-08-01T10:16:58+08:00
[INFO] ------------------------------------------------------------------------



E:\Downloads\documents\STS_projects\justProject>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.justproject.example:parentproject >----------------
[INFO] Building parentproject 1.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.189 s
[INFO] Finished at: 2018-08-01T10:17:49+08:00
[INFO] ------------------------------------------------------------------------

Step 2 Create the provider-project

  1. Create the folder-structure for the provider-project
E:\Downloads\documents\STS_projects\justProject>cd provider

E:\Downloads\documents\STS_projects\justProject\provider>mkdir src\main\java\app

E:\Downloads\documents\STS_projects\justProject\provider>tree . /f
卷 Tools 的文件夹 PATH 列表
卷序列号为 E885-5830
E:\DOWNLOADS\DOCUMENTS\STS_PROJECTS\JUSTPROJECT\PROVIDER
└─src
    └─main
        └─java
            └─app
  1. Create the pom.xml for the provider-project.

Content of provider\pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.justproject.example</groupId>
    <artifactId>provider</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>com.justproject.example</groupId>
        <artifactId>parentproject</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
  1. In the pom.xml of the parent-project, add this provider-project as a module.

pom.xml of parent-project

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.justproject.example</groupId>
    <artifactId>parentproject</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.7.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

    <modules>
        <module>provider</module>
    </modules>
</project>
  1. Create a main-entry for the project

Content of provider\src\main\java\app\Provider.java

package app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Provider {
    public static void main(String[] args) {
        SpringApplication.run(Provider.class, args);
    }
}
  1. Try packaging the provider-project now.

E:\Downloads\documents\STS_projects\justProject\provider>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.justproject.example:provider >------------------
[INFO] Building provider 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ provider ---
[INFO] Deleting E:\Downloads\documents\STS_projects\justProject\provider\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\main\resources
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ provider ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\Downloads\documents\STS_projects\justProject\provider\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[3,32] 程序包org.springframework.boot不存在
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[4,46] 程序包org.springframework.boot.autoconfigure不存在
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[6,2] 找不到符号
  符号: 类 SpringBootApplication
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[9,9] 找不到符号
  符号:   变量 SpringApplication
  位置: 类 app.Provider
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.919 s
[INFO] Finished at: 2018-08-01T11:02:59+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project provider: Compilation failure: Compilation failure:
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[3,32] 程序包org.springframework.boot不存在
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[4,46] 程序包org.springframework.boot.autoconfigure不存在
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[6,2] 找不到符号
[ERROR]   符号: 类 SpringBootApplication
[ERROR] /E:/Downloads/documents/STS_projects/justProject/provider/src/main/java/app/Provider.java:[9,9] 找不到符号
[ERROR]   符号:   变量 SpringApplication
[ERROR]   位置: 类 app.Provider
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

E:\Downloads\documents\STS_projects\justProject\provider>

The build is failed, and the reason is that we didn't declare the dependencies for the provider-project.

  1. Since we all base on Spring-book, update the pom.xml for the parent-project, to include the common Spring features.

pom.xml of parent-project

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.justproject.example</groupId>
    <artifactId>parentproject</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.7.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>
    </dependencies>

    <modules>
        <module>provider</module>
    </modules>
</project>
  1. Build the provider-project again, and see build success
E:\Downloads\documents\STS_projects\justProject\provider>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.justproject.example:provider >------------------
[INFO] Building provider 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ provider ---
[INFO] Deleting E:\Downloads\documents\STS_projects\justProject\provider\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\main\resources
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ provider ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\Downloads\documents\STS_projects\justProject\provider\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ provider ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ provider ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ provider ---
[INFO] Building jar: E:\Downloads\documents\STS_projects\justProject\provider\target\provider-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.7.RELEASE:repackage (default) @ provider ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.458 s
[INFO] Finished at: 2018-08-01T11:05:58+08:00
[INFO] ------------------------------------------------------------------------

Step 3 Make provider to register to Zoo-Keeper

  1. Add dependency to dubbo & zoo-keeper for provider-project.

Content of provider\pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.justproject.example</groupId>
    <artifactId>provider</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>com.justproject.example</groupId>
        <artifactId>parentproject</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>io.dubbo.springboot</groupId>
            <artifactId>spring-boot-starter-dubbo</artifactId>
            <version>1.0.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.4.6</version>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
  1. Create a new package service to put interfaces & implementations of exposed services.
E:\Downloads\documents\STS_projects\justProject\provider>mkdir src\main\java\mservice

E:\Downloads\documents\STS_projects\justProject\provider>tree .
卷 Tools 的文件夹 PATH 列表
卷序列号为 E885-5830
E:\DOWNLOADS\DOCUMENTS\STS_PROJECTS\JUSTPROJECT\PROVIDER
├─src
│  └─main
│      ├─java
│      │  ├─app
│      │  └─mservice
└─target
    ├─classes
    │  └─app
    ├─generated-sources
    │  └─annotations
    ├─maven-archiver
    └─maven-status
        └─maven-compiler-plugin
            └─compile
                └─default-compile
  1. Add a service-interface

Content of provider\src\main\java\mservice\IDemoService.java

package mservice;

public interface IDemoService{
    String sayHello();
}
  1. Create a class to implement the interface

Content of provider\src\main\java\mservice\DemoServiceImp.java

package mservice;

public class DemoServiceImp implements IDemoService{
    @Override
    public String sayHello() {
        return "Hello from DemoServiceImp";
    }
}
  1. Use annotation @Service from dubbo, to mark it as a dubbo-service

Content of provider\src\main\java\mservice\DemoServiceImp.java

package mservice;

import com.alibaba.dubbo.config.annotation.Service;

@Service
public class DemoServiceImp implements IDemoService{
    @Override
    public String sayHello() {
        return "Hello from DemoServiceImp";
    }
}
  1. Create the resources folder for provider-project.
E:\Downloads\documents\STS_projects\justProject\provider>mkdir src\main\resources

E:\Downloads\documents\STS_projects\justProject\provider>tree .
卷 Tools 的文件夹 PATH 列表
卷序列号为 E885-5830
E:\DOWNLOADS\DOCUMENTS\STS_PROJECTS\JUSTPROJECT\PROVIDER
├─src
│  └─main
│      ├─java
│      │  ├─app
│      │  └─mservice
│      └─resources
└─target
    ├─classes
    │  └─app
    ├─generated-sources
    │  └─annotations
    ├─maven-archiver
    └─maven-status
        └─maven-compiler-plugin
            └─compile
                └─default-compile
  1. Create the application.properties file to save the configuration for provider-project.
    Here, we should define to scan the package of the service-implementation, not the package where we define the service-interface!!!

Content of provider\src\main\resources\application.properties

## Configuration for dubbo
# this is a provider
spring.dubbo.application.name=provider
# register to this zoo-keeper
spring.dubbo.registry.address=zookeeper://xxx.xxx.xxx.xxx:2181
# use dubbo-protocol
spring.dubbo.protocol.name=dubbo
# locally, use this port to communicate with zoo-keeper
spring.dubbo.protocol.port=20880
# scan this package to find the service-interfaces
spring.dubbo.scan=mservice
  1. Build the project again, to see the effect.
E:\Downloads\documents\STS_projects\justProject\provider>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.justproject.example:provider >------------------
[INFO] Building provider 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ provider ---
[INFO] Deleting E:\Downloads\documents\STS_projects\justProject\provider\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ provider ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to E:\Downloads\documents\STS_projects\justProject\provider\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Downloads\documents\STS_projects\justProject\provider\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ provider ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ provider ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ provider ---
[INFO] Building jar: E:\Downloads\documents\STS_projects\justProject\provider\target\provider-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.7.RELEASE:repackage (default) @ provider ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.965 s
[INFO] Finished at: 2018-08-01T11:43:42+08:00
[INFO] ------------------------------------------------------------------------
  1. Run the jar, from command-line.
E:\Downloads\documents\STS_projects\justProject\provider>java -jar target\provider-1.0-SNAPSHOT.jar

......
......
2018-08-01 11:48:24.641  INFO 19828 --- [           main] app.Provider                             : Started Provider in 4.749 seconds (JVM running for 5.794)
  1. Log onto the server where zoo-keeper is running, to check the registered service. Here we can assure that our service has been registered to zoo-keeper.
[xxx@VM_0_8_centos bin]#  ./zkCli.sh -server 127.0.0.1:2181

[zk: 127.0.0.1:2181(CONNECTED) 3] ls /
[dubbo, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 5] get /dubbo/mservice.IDemoService
null
cZxid = 0x5
ctime = Wed Aug 01 11:48:26 CST 2018
mZxid = 0x5
mtime = Wed Aug 01 11:48:26 CST 2018
pZxid = 0xa
cversion = 2
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 2

References

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,142评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,298评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,068评论 0 351
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,081评论 1 291
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,099评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,071评论 1 295
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,990评论 3 417
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,832评论 0 273
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,274评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,488评论 2 331
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,649评论 1 347
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,378评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,979评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,625评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,796评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,643评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,545评论 2 352

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,322评论 0 10
  • 各位战友好,我是891号王超,在这次的采访活动中有幸采访到了写作牛人Frank,由于我们小组的时间比较难凑在一起,...
    船夫Kelly阅读 303评论 1 0
  • 我蛮喜欢看有意境的广告的,总能表达出让人感动,幸福的味道。――《三菱汽车》 男主角开车与女主角来到第一次约...
    安颖欣阅读 390评论 0 1
  • 清明节起始于周代,是我国最重要的传统节日 ,也是二十四节气之一。而提到“寒食节”,人们自然会想到介子推为晋...
    云游借路阅读 2,295评论 0 0
  • src与href的区别: href(Hypertext Reference):超文本引用,常用的标签有link、a...
    chasing_dream阅读 830评论 0 0