Skip to content

Commit e590bda

Browse files
author
liqiangqiang
committed
WebFlux 快速入门实践
1 parent fb5edbd commit e590bda

File tree

2 files changed

+40
-92
lines changed
  • springboot-webflux-1-quickstart

2 files changed

+40
-92
lines changed
Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,50 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
4+
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>springboot</groupId>
7-
<artifactId>springboot-webflux-1-quickstart</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<name>springboot-webflux-1-quickstart :: Spring Boot WebFlux 快速入门</name>
6+
<groupId>springboot</groupId>
7+
<artifactId>springboot-webflux-1-quickstart</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<name>springboot-webflux-1-quickstart :: Spring Boot WebFlux 快速入门</name>
1010

11-
<!-- Spring Boot 启动父依赖 -->
12-
<parent>
13-
<groupId>org.springframework.boot</groupId>
14-
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>2.0.1.RELEASE</version>
16-
</parent>
17-
18-
<dependencies>
11+
<parent>
12+
<groupId>org.springframework.boot</groupId>
13+
<artifactId>spring-boot-starter-parent</artifactId>
14+
<version>2.0.1.RELEASE</version>
15+
<relativePath/> <!-- lookup parent from repository -->
16+
</parent>
1917

20-
<!-- Spring Boot Web Flux 依赖 -->
21-
<dependency>
22-
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-webflux</artifactId>
24-
</dependency>
18+
<properties>
19+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
21+
<java.version>1.8</java.version>
22+
</properties>
2523

26-
<!-- Spring Boot Test 依赖 -->
27-
<dependency>
28-
<groupId>org.springframework.boot</groupId>
29-
<artifactId>spring-boot-starter-test</artifactId>
30-
<scope>test</scope>
31-
</dependency>
24+
<dependencies>
25+
<dependency>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-starter-webflux</artifactId>
28+
</dependency>
3229

33-
<!-- Junit -->
34-
<dependency>
35-
<groupId>junit</groupId>
36-
<artifactId>junit</artifactId>
37-
<version>4.12</version>
38-
</dependency>
39-
</dependencies>
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-test</artifactId>
33+
<scope>test</scope>
34+
</dependency>
35+
<dependency>
36+
<groupId>io.projectreactor</groupId>
37+
<artifactId>reactor-test</artifactId>
38+
<scope>test</scope>
39+
</dependency>
40+
</dependencies>
4041

42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.springframework.boot</groupId>
46+
<artifactId>spring-boot-maven-plugin</artifactId>
47+
</plugin>
48+
</plugins>
49+
</build>
4150
</project>

springboot-webflux-1-quickstart/src/main/java/org/spring/springboot/domain/City.java

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)