File tree 3 files changed +18
-17
lines changed
src/main/java/io/vertx/example
3 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
- Spring Examples
1
+ = Spring Examples
2
2
3
- This projects presents how vert .x and Spring can interact.
3
+ These projects present how Vert .x and Spring can interact.
4
4
5
- === Spring Boot Example
5
+ == Spring Boot Example
6
6
7
- The link:springboot-example/README.adoc[Vert.x SpringBoot Example] shows how you can embed Vert.x in a SpringBoot
8
- application.
7
+ The link:springboot-example/README.adoc[Vert.x Spring Boot Example] shows how you can embed Vert.x in a Spring Boot application.
9
8
10
- === Spring example
9
+ == Spring Example
11
10
12
- The link:spring-example/README.adoc[Vert.x Spring Example] shows how you can access Spring beans as services in a vert.x
13
- application
11
+ The link:spring-example/README.adoc[Vert.x Spring Example] shows how you can access Spring beans as services in a Vert.x application
12
+
13
+ == Spring Boot Clustering
14
+
15
+ The link:spring-boot-clustering/README.adoc[Spring Boot Clustering Examples] show how you can setup a clustered Vert.x embedded in Spring Boot.
Original file line number Diff line number Diff line change 1
- = Vert.x SpringBoot example
1
+ = Vert.x Spring Boot example
2
2
3
- This example shows how you can embed Vert.x in SpringBoot .
3
+ This example shows how you can embed Vert.x in Spring Boot .
4
4
5
- So now you can add all the goodness of Vert.x to your SpringBoot applications
5
+ So now you can add all the goodness of Vert.x to your Spring Boot applications
6
6
7
7
It's basically the same example as the Vert.x-Web "staticsite" example in this repository but instead of using
8
- Vert.x to boot it it uses SpringBoot to start it.
8
+ Vert.x to boot it it uses Spring Boot to start it.
9
9
10
- The end result is more or less the same as using Vert.x without SpringBoot :
10
+ The end result is more or less the same as using Vert.x without Spring Boot :
11
11
12
12
* There is a similar amount of code and boilerplate (both very little)
13
- * Both Vert.x and SpringBoot create executable fat jars (The Vert.x jar is considerable smaller than the SpringBoot one though)
14
- * The SpringBoot version seems a bit slower to startup than the Vert.x version
13
+ * Both Vert.x and Spring Boot create executable fat jars (The Vert.x jar is considerable smaller than the Spring Boot one though)
14
+ * The Spring Boot version seems a bit slower to startup than the Vert.x version
15
15
16
16
To build the "fat jar"
17
17
Original file line number Diff line number Diff line change 4
4
import io .vertx .core .Vertx ;
5
5
import org .springframework .beans .factory .annotation .Autowired ;
6
6
import org .springframework .boot .SpringApplication ;
7
- import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
8
7
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
8
10
9
import javax .annotation .PostConstruct ;
@@ -18,7 +17,7 @@ public class Application {
18
17
public static void main (String [] args ) {
19
18
20
19
// This is basically the same example as the web-examples static site example but it's booted using
21
- // SpringBoot , not Vert.x
20
+ // Spring Boot , not Vert.x
22
21
SpringApplication .run (Application .class , args );
23
22
}
24
23
You can’t perform that action at this time.
0 commit comments