+
This is an example Vue.js application developed with Spring Boot
+
This file is rendered by a Spring built-in default controller for index.html (/) using
+ Spring's built-in
+ Thymeleaf templating engine.
+ Although we don't need it per se, we customized the information passed to this
+ view from thymeleaf by adding a controller method for "/" route to demonstrate how to pass information from
+ Thymeleaf to this page.
+ The combination of template engine and frontend framework like Vue can make this a powerful approach to build
+ more complex applications while leveraging the benefits of a framework like Vue.js.
+ You can use thymeleaf features too but this project focuses mainly on using Vue.js on the
+ frontend as the framework and makes minimal use of Thymeleaf.
+ Also we don't use any routing and multiple components in this example, so what you see is technically a
+ Single Page Application (SPA) without any routes configured.
+
+
+
+
+ Name of Event:
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-boot-vue/src/test/java/com/baeldung/springbootmvc/SpringBootMvcApplicationTests.java b/spring-boot-vue/src/test/java/com/baeldung/springbootmvc/SpringBootMvcApplicationTests.java
new file mode 100644
index 0000000000..6364351eb3
--- /dev/null
+++ b/spring-boot-vue/src/test/java/com/baeldung/springbootmvc/SpringBootMvcApplicationTests.java
@@ -0,0 +1,35 @@
+package com.baeldung.springbootmvc;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
+
+import static org.hamcrest.CoreMatchers.containsString;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+@AutoConfigureMockMvc
+public class SpringBootMvcApplicationTests {
+
+ @Autowired
+ private MockMvc mockMvc;
+
+ /**
+ * If this test passes, we got a page with the thymeleaf provided variable
+ * value for eventName
+ */
+ @Test
+ public void shouldLoadCorrectIndexPage() throws Exception {
+ mockMvc.perform(get("/")).andExpect(status().isOk()).
+ andExpect(MockMvcResultMatchers.content()
+ .string(containsString("FIFA 2018")));
+ }
+
+}
diff --git a/spring-boot/README.MD b/spring-boot/README.MD
index 66e7c923c9..a572a16b67 100644
--- a/spring-boot/README.MD
+++ b/spring-boot/README.MD
@@ -34,3 +34,4 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
- [Spring Boot Exit Codes](http://www.baeldung.com/spring-boot-exit-codes)
- [Guide to the Favicon in Spring Boot](http://www.baeldung.com/spring-boot-favicon)
- [Spring Shutdown Callbacks](http://www.baeldung.com/spring-shutdown-callbacks)
+- [Spring Boot Integration Testing with Embedded MongoDB](http://www.baeldung.com/spring-boot-embedded-mongodb)
diff --git a/spring-data-jpa/pom.xml b/spring-data-jpa/pom.xml
new file mode 100644
index 0000000000..517d43bd0e
--- /dev/null
+++ b/spring-data-jpa/pom.xml
@@ -0,0 +1,26 @@
+
+