项目作者: zicat

项目描述 :
webflux-kotlin maven archetype
高级语言: Kotlin
项目地址: git://github.com/zicat/webflux-kotlin.git
创建时间: 2018-05-04T03:43:16Z
项目社区:https://github.com/zicat/webflux-kotlin

开源协议:

下载


Prepare

  1. Install JDK 8+
  2. Install newest maven
  3. Install git command
  4. check environment is ready
  5. $ java -version
  6. java version "1.8.0_144"
  7. Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
  8. Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
  9. $ mvn -version
  10. Apache Maven 3.5.0
  11. $ git --version
  12. git version 2.14.1

Start building webflux-kotlin

  1. 1. $ git clone https://github.com/zicat/webflux-kotlin.git
  2. 2. $ cd webflux-kotlin
  3. 3. $ mvn clean install
  4. 4. $ mvn spring-boot:run
  5. 5. open browser and input url
  6. http://localhost:8080/product?productId=1&description=a

Your first webflux-kotlin restfull api is finished!

Create webflux-kotlin maven archetype

  1. 1. $ cd webflux-kotlin
  2. 2. $ mvn archetype:create-from-project
  3. 3. $ cd target/generated-sources/archetype
  4. 4. $ mvn install

Create your restfull api project with maven archetype

  1. 1. $ cd your work dir
  2. 2. $ mvn archetype:generate \
  3. -DarchetypeGroupId=name.zicat \
  4. -DarchetypeArtifactId=webflux-kotlin-archetype \
  5. -DarchetypeVersion=1.0-SNAPSHOT \
  6. -DgroupId=${your_group_id} \
  7. -DartifactId=${your_artifact_id} \
  8. -Dversion=${your_version}
  9. 3. $ cd ${your_artifact_id}
  10. 4. $ mvn clean install
  11. 5. $ mvn spring-boot:run
  12. 6. open browser and input url
  13. http://localhost:8080/product?productId=1&description=a

Start Coding

  1. 1. download intellij 15+
  2. 2. import ${your_artifact_id} to intellij

Performance

Compare with Servlet, VertX

https://github.com/zicat/spring-webflux-research