From 4ff0d94e6b44f47e63a540bf592485c563fe408b Mon Sep 17 00:00:00 2001 From: dhruba619 Date: Thu, 8 Jun 2017 21:18:57 +0530 Subject: [PATCH 1/2] BAEL-778 initial commit --- pom.xml | 1 + vertx-spring/pom.xml | 76 +++++++++++++++++++ .../vertxspring/VertxSpringApplication.java | 41 ++++++++++ .../baeldung/vertxspring/entity/Article.java | 46 +++++++++++ .../repository/ArticleRepository.java | 11 +++ .../vertxspring/service/ArticleService.java | 25 ++++++ .../vertxspring/util/DbBootstrap.java | 28 +++++++ .../vertxspring/verticles/ServerVerticle.java | 42 ++++++++++ .../verticles/ServiceVerticle.java | 49 ++++++++++++ .../src/main/resources/application.properties | 0 .../src/main/resources/conf/conf.json | 3 + .../VertxSpringApplicationTests.java | 26 +++++++ 12 files changed, 348 insertions(+) create mode 100644 vertx-spring/pom.xml create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java create mode 100644 vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java create mode 100644 vertx-spring/src/main/resources/application.properties create mode 100644 vertx-spring/src/main/resources/conf/conf.json create mode 100644 vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java diff --git a/pom.xml b/pom.xml index bb714c39be..e7bdb5743f 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,7 @@ + vertx-spring aws akka-streams algorithms diff --git a/vertx-spring/pom.xml b/vertx-spring/pom.xml new file mode 100644 index 0000000000..f27aff952e --- /dev/null +++ b/vertx-spring/pom.xml @@ -0,0 +1,76 @@ + + + 4.0.0 + + com.baeldung + vertx-spring + 0.0.1-SNAPSHOT + jar + + vertx-spring + A demo project with vertx spring integration + + + org.springframework.boot + spring-boot-starter-parent + 1.5.3.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + 3.4.1 + + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + io.vertx + vertx-core + ${vertx.version} + + + io.vertx + vertx-web + ${vertx.version} + + + + com.h2database + h2 + runtime + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java new file mode 100644 index 0000000000..880984986e --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java @@ -0,0 +1,41 @@ +package com.baeldung.vertxspring; + +import javax.annotation.PostConstruct; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.domain.EntityScan; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; + +import com.baeldung.vertxspring.verticles.ServerVerticle; +import com.baeldung.vertxspring.verticles.ServiceVerticle; + +import io.vertx.core.Vertx; + +@SpringBootApplication +@Configuration +@EnableJpaRepositories("com.baeldung.vertxspring.repository") +@EntityScan("com.baeldung.vertxspring.entity") +@ComponentScan(basePackages = { "com.baeldung" }) +public class VertxSpringApplication { + + @Autowired + ServerVerticle serverVerticle; + + @Autowired + ServiceVerticle serviceVerticle; + + public static void main(String[] args) { + SpringApplication.run(VertxSpringApplication.class, args); + } + + @PostConstruct + public void deployVerticle() { + final Vertx vertx = Vertx.vertx(); + vertx.deployVerticle(serverVerticle); + vertx.deployVerticle(serviceVerticle); + } +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java new file mode 100644 index 0000000000..1fcb03c319 --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java @@ -0,0 +1,46 @@ +package com.baeldung.vertxspring.entity; + +import javax.persistence.Entity; +import javax.persistence.Id; + +import org.springframework.data.annotation.PersistenceConstructor; + +@Entity +public class Article { + + @Id + private Long id; + private String article; + + private Article() { + } + + @PersistenceConstructor + public Article(Long id, String article) { + super(); + this.id = id; + this.article = article; + } + + @Override + public String toString() { + return "Article [id=" + id + ", article=" + article + "]"; + } + + public Long getArticleId() { + return id; + } + + public void setArticleId(Long id) { + this.id = id; + } + + public String getArticle() { + return article; + } + + public void setArticle(String article) { + this.article = article; + } + +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java new file mode 100644 index 0000000000..843c88b694 --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java @@ -0,0 +1,11 @@ +package com.baeldung.vertxspring.repository; + +import org.springframework.data.repository.CrudRepository; +import org.springframework.stereotype.Repository; + +import com.baeldung.vertxspring.entity.Article; + +@Repository +public interface ArticleRepository extends CrudRepository { + +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java new file mode 100644 index 0000000000..55cb8bbfcb --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java @@ -0,0 +1,25 @@ +package com.baeldung.vertxspring.service; + +import java.util.ArrayList; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.baeldung.vertxspring.entity.Article; +import com.baeldung.vertxspring.repository.ArticleRepository; + +@Service +public class ArticleService { + + @Autowired + ArticleRepository articleRepository; + + public List
getAllArticle() { + List
articles = new ArrayList<>(); + articleRepository.findAll() + .forEach(articles::add); + return articles; + } + +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java new file mode 100644 index 0000000000..4aedb2d0ed --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java @@ -0,0 +1,28 @@ +package com.baeldung.vertxspring.util; + +import java.util.Random; +import java.util.UUID; +import java.util.stream.IntStream; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.CommandLineRunner; +import org.springframework.stereotype.Component; + +import com.baeldung.vertxspring.entity.Article; +import com.baeldung.vertxspring.repository.ArticleRepository; + +@Component +public class DbBootstrap implements CommandLineRunner { + + @Autowired + private ArticleRepository articleRepository; + + @Override + public void run(String... arg0) throws Exception { + + IntStream.range(0, 10) + .forEach(count -> this.articleRepository.save(new Article(new Random().nextLong(), UUID.randomUUID() + .toString()))); + + } +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java new file mode 100644 index 0000000000..bfa6679f7d --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java @@ -0,0 +1,42 @@ +package com.baeldung.vertxspring.verticles; + +import org.springframework.stereotype.Component; + +import io.vertx.core.AbstractVerticle; +import io.vertx.ext.web.Router; +import io.vertx.ext.web.RoutingContext; + +@Component +public class ServerVerticle extends AbstractVerticle { + + private void getAllArticlesHandler(RoutingContext routingContext) { + vertx.eventBus() + . send(ServiceVerticle.GET_ALL_ARTICLES, "", result -> { + if (result.succeeded()) { + routingContext.response() + .putHeader("content-type", "application/json") + .setStatusCode(200) + .end(result.result() + .body()); + } else { + routingContext.response() + .setStatusCode(500) + .end(); + } + }); + } + + @Override + public void start() throws Exception { + super.start(); + + Router router = Router.router(vertx); + router.get("/api/baeldung/articles") + .handler(this::getAllArticlesHandler); + + vertx.createHttpServer() + .requestHandler(router::accept) + .listen(config().getInteger("http.port", 8080)); + } + +} diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java b/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java new file mode 100644 index 0000000000..b75ce30822 --- /dev/null +++ b/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java @@ -0,0 +1,49 @@ +package com.baeldung.vertxspring.verticles; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import com.baeldung.vertxspring.service.ArticleService; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +import io.vertx.core.AbstractVerticle; +import io.vertx.core.Handler; +import io.vertx.core.eventbus.Message; +import io.vertx.core.json.Json; + +@Component +public class ServiceVerticle extends AbstractVerticle { + + public static final String GET_ALL_ARTICLES = "get.artilces.all"; + + @Autowired + private ArticleService articleService; + private final ObjectMapper mapper = Json.mapper; + + @Override + public void start() throws Exception { + super.start(); + vertx.eventBus() + . consumer(GET_ALL_ARTICLES) + .handler(getAllArticleService(articleService)); + } + + private Handler> getAllArticleService(ArticleService service) { + return msg -> vertx. executeBlocking(future -> { + try { + future.complete(mapper.writeValueAsString(service.getAllArticle())); + } catch (JsonProcessingException e) { + System.out.println("Failed to serialize result"); + future.fail(e); + } + } , result -> { + if (result.succeeded()) { + msg.reply(result.result()); + } else { + msg.reply(result.cause() + .toString()); + } + }); + } +} diff --git a/vertx-spring/src/main/resources/application.properties b/vertx-spring/src/main/resources/application.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/vertx-spring/src/main/resources/conf/conf.json b/vertx-spring/src/main/resources/conf/conf.json new file mode 100644 index 0000000000..4fa43ee648 --- /dev/null +++ b/vertx-spring/src/main/resources/conf/conf.json @@ -0,0 +1,3 @@ +{ + "http.port":8080 +} \ No newline at end of file diff --git a/vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java b/vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java new file mode 100644 index 0000000000..1afb14a2ed --- /dev/null +++ b/vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java @@ -0,0 +1,26 @@ +package com.baeldung.vertxspring; + +import static org.junit.Assert.assertEquals; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.test.web.client.TestRestTemplate; +import org.springframework.http.ResponseEntity; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +@RunWith(SpringJUnit4ClassRunner.class) +@SpringBootTest +public class VertxSpringApplicationTests { + + private TestRestTemplate restTemplate = new TestRestTemplate(); + + @Test + public void givenUrl_whenReceivedArticles_thenSuccess() { + ResponseEntity responseEntity = restTemplate.getForEntity("http://localhost:8080/api/baeldung/articles", String.class); + assertEquals(200, responseEntity.getStatusCodeValue()); + } + +} + + From cc3737782134760a35f83b166350f1b8f14a0e33 Mon Sep 17 00:00:00 2001 From: slavisa-baeldung Date: Sat, 10 Jun 2017 11:53:39 +0100 Subject: [PATCH 2/2] BAEL-778 - renaming the vertx-spring to spring-vertx --- pom.xml | 37 ++++----- spring-vertx/pom.xml | 77 +++++++++++++++++++ .../vertxspring/VertxSpringApplication.java | 0 .../baeldung/vertxspring/entity/Article.java | 0 .../repository/ArticleRepository.java | 0 .../vertxspring/service/ArticleService.java | 0 .../vertxspring/util/DbBootstrap.java | 4 +- .../vertxspring/verticles/ServerVerticle.java | 4 +- .../verticles/ServiceVerticle.java | 13 ++-- .../src/main/resources/application.properties | 0 .../src/main/resources/conf/conf.json | 0 .../VertxSpringApplicationTests.java | 0 vertx-spring/pom.xml | 76 ------------------ 13 files changed, 106 insertions(+), 105 deletions(-) create mode 100644 spring-vertx/pom.xml rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java (100%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/entity/Article.java (100%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java (100%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/service/ArticleService.java (100%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java (81%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java (91%) rename {vertx-spring => spring-vertx}/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java (84%) rename {vertx-spring => spring-vertx}/src/main/resources/application.properties (100%) rename {vertx-spring => spring-vertx}/src/main/resources/conf/conf.json (100%) rename {vertx-spring => spring-vertx}/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java (100%) delete mode 100644 vertx-spring/pom.xml diff --git a/pom.xml b/pom.xml index e7bdb5743f..20994d0c86 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.baeldung parent-modules @@ -11,20 +12,20 @@ UTF-8 refs/heads/master - + 4.12 - 1.3 + 1.3 1.10.19 1.7.21 1.1.7 - 2.19.1 - 3.6.0 + 2.19.1 + 3.6.0 - vertx-spring + spring-vertx aws akka-streams algorithms @@ -71,7 +72,7 @@ immutables jackson - + vavr javax-servlets javaxval @@ -123,8 +124,8 @@ selenium-junit-testng solr spark-java - spring-5 - spring-5-mvc + spring-5 + spring-5-mvc spring-akka spring-amqp spring-all @@ -176,7 +177,7 @@ spring-rest-angular spring-rest-docs spring-rest - spring-rest-simple + spring-rest-simple spring-security-cache-control spring-security-client/spring-security-jsp-authentication spring-security-client/spring-security-jsp-authorize @@ -243,12 +244,12 @@ ch.qos.logback logback-core ${logback.version} - + org.slf4j jcl-over-slf4j ${org.slf4j.version} - + @@ -268,8 +269,8 @@ hamcrest-library ${org.hamcrest.version} test - - + + org.hamcrest hamcrest-all ${org.hamcrest.version} @@ -281,7 +282,7 @@ ${mockito.version} test - + @@ -296,7 +297,7 @@ org.apache.maven.plugins maven-surefire-plugin - ${maven-surefire-plugin.version} + ${maven-surefire-plugin.version} 3 true @@ -313,12 +314,12 @@ org.apache.maven.plugins maven-compiler-plugin - ${maven-compiler-plugin.version} + ${maven-compiler-plugin.version} 1.8 1.8 - + + + + + UTF-8 + UTF-8 + 1.8 + 3.4.1 + + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + io.vertx + vertx-core + ${vertx.version} + + + io.vertx + vertx-web + ${vertx.version} + + + + com.h2database + h2 + runtime + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java similarity index 100% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/VertxSpringApplication.java diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/entity/Article.java similarity index 100% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/entity/Article.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/entity/Article.java diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java similarity index 100% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/repository/ArticleRepository.java diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/service/ArticleService.java similarity index 100% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/service/ArticleService.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/service/ArticleService.java diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java similarity index 81% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java index 4aedb2d0ed..63d1df6485 100644 --- a/vertx-spring/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java +++ b/spring-vertx/src/main/java/com/baeldung/vertxspring/util/DbBootstrap.java @@ -21,8 +21,8 @@ public class DbBootstrap implements CommandLineRunner { public void run(String... arg0) throws Exception { IntStream.range(0, 10) - .forEach(count -> this.articleRepository.save(new Article(new Random().nextLong(), UUID.randomUUID() - .toString()))); + .forEach(count -> this.articleRepository.save(new Article(new Random().nextLong(), UUID.randomUUID() + .toString()))); } } diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java similarity index 91% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java index bfa6679f7d..aa2196b53d 100644 --- a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java +++ b/spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServerVerticle.java @@ -11,13 +11,13 @@ public class ServerVerticle extends AbstractVerticle { private void getAllArticlesHandler(RoutingContext routingContext) { vertx.eventBus() - . send(ServiceVerticle.GET_ALL_ARTICLES, "", result -> { + .send(ServiceVerticle.GET_ALL_ARTICLES, "", result -> { if (result.succeeded()) { routingContext.response() .putHeader("content-type", "application/json") .setStatusCode(200) .end(result.result() - .body()); + .body()); } else { routingContext.response() .setStatusCode(500) diff --git a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java b/spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java similarity index 84% rename from vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java rename to spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java index b75ce30822..7c46d4200a 100644 --- a/vertx-spring/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java +++ b/spring-vertx/src/main/java/com/baeldung/vertxspring/verticles/ServiceVerticle.java @@ -16,33 +16,32 @@ import io.vertx.core.json.Json; public class ServiceVerticle extends AbstractVerticle { public static final String GET_ALL_ARTICLES = "get.artilces.all"; - + private final ObjectMapper mapper = Json.mapper; @Autowired private ArticleService articleService; - private final ObjectMapper mapper = Json.mapper; @Override public void start() throws Exception { super.start(); vertx.eventBus() - . consumer(GET_ALL_ARTICLES) - .handler(getAllArticleService(articleService)); + .consumer(GET_ALL_ARTICLES) + .handler(getAllArticleService(articleService)); } private Handler> getAllArticleService(ArticleService service) { - return msg -> vertx. executeBlocking(future -> { + return msg -> vertx.executeBlocking(future -> { try { future.complete(mapper.writeValueAsString(service.getAllArticle())); } catch (JsonProcessingException e) { System.out.println("Failed to serialize result"); future.fail(e); } - } , result -> { + }, result -> { if (result.succeeded()) { msg.reply(result.result()); } else { msg.reply(result.cause() - .toString()); + .toString()); } }); } diff --git a/vertx-spring/src/main/resources/application.properties b/spring-vertx/src/main/resources/application.properties similarity index 100% rename from vertx-spring/src/main/resources/application.properties rename to spring-vertx/src/main/resources/application.properties diff --git a/vertx-spring/src/main/resources/conf/conf.json b/spring-vertx/src/main/resources/conf/conf.json similarity index 100% rename from vertx-spring/src/main/resources/conf/conf.json rename to spring-vertx/src/main/resources/conf/conf.json diff --git a/vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java b/spring-vertx/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java similarity index 100% rename from vertx-spring/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java rename to spring-vertx/src/test/java/com/baeldung/vertxspring/VertxSpringApplicationTests.java diff --git a/vertx-spring/pom.xml b/vertx-spring/pom.xml deleted file mode 100644 index f27aff952e..0000000000 --- a/vertx-spring/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - 4.0.0 - - com.baeldung - vertx-spring - 0.0.1-SNAPSHOT - jar - - vertx-spring - A demo project with vertx spring integration - - - org.springframework.boot - spring-boot-starter-parent - 1.5.3.RELEASE - - - - - UTF-8 - UTF-8 - 1.8 - 3.4.1 - - - - - org.springframework.boot - spring-boot-starter-data-jpa - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - io.vertx - vertx-core - ${vertx.version} - - - io.vertx - vertx-web - ${vertx.version} - - - - com.h2database - h2 - runtime - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - -