diff --git a/spring-web-modules/pom.xml b/spring-web-modules/pom.xml index 87bcfaa203..9ecad50d9c 100644 --- a/spring-web-modules/pom.xml +++ b/spring-web-modules/pom.xml @@ -23,6 +23,7 @@ spring-mvc-basics-3 spring-mvc-basics-4 spring-mvc-basics-5 + spring-mvc-basics-6 spring-mvc-crash spring-mvc-file spring-mvc-forms-jsp diff --git a/spring-web-modules/spring-mvc-basics-5/README.md b/spring-web-modules/spring-mvc-basics-5/README.md index d503b9e78e..ec91449b0f 100644 --- a/spring-web-modules/spring-mvc-basics-5/README.md +++ b/spring-web-modules/spring-mvc-basics-5/README.md @@ -14,5 +14,4 @@ The "REST With Spring" Classes: https://bit.ly/restwithspring - [Spring @RequestParam vs @PathVariable Annotations](https://www.baeldung.com/spring-requestparam-vs-pathvariable) - [@RequestMapping Value in Properties File](https://www.baeldung.com/spring-requestmapping-properties-file) - [Map a JSON POST to Multiple Spring MVC Parameters](https://www.baeldung.com/spring-mvc-json-param-mapping) -- [Getting Query String Parameters from HttpServletRequest](https://www.baeldung.com/java-httpservletrequest-get-query-parameters) - More articles: [[<-- prev]](../spring-mvc-basics-4) diff --git a/spring-web-modules/spring-mvc-basics-6/README.md b/spring-web-modules/spring-mvc-basics-6/README.md new file mode 100644 index 0000000000..f2e6835187 --- /dev/null +++ b/spring-web-modules/spring-mvc-basics-6/README.md @@ -0,0 +1,11 @@ +## Spring MVC Basics + +This module contains articles about the basics of Spring MVC. Articles about more specific areas of Spring MVC have +their own module. + +### The Course +The "REST With Spring" Classes: https://bit.ly/restwithspring + +### Relevant Articles: +- [Getting Query String Parameters from HttpServletRequest](https://www.baeldung.com/java-httpservletrequest-get-query-parameters) +- More articles: [[<-- prev]](../spring-mvc-basics-4) diff --git a/spring-web-modules/spring-mvc-basics-6/pom.xml b/spring-web-modules/spring-mvc-basics-6/pom.xml new file mode 100644 index 0000000000..7b63dfbcde --- /dev/null +++ b/spring-web-modules/spring-mvc-basics-6/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + spring-mvc-basics-6 + 0.1-SNAPSHOT + spring-mvc-basics-6 + jar + + + com.baeldung + parent-boot-3 + 0.0.1-SNAPSHOT + ../../parent-boot-3 + + + + + org.springframework.boot + spring-boot-starter-web + + + + + spring-mvc-basics-5 + + + org.springframework.boot + spring-boot-maven-plugin + + com.baeldung.Application + JAR + + + + + + \ No newline at end of file diff --git a/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/Application.java b/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/Application.java new file mode 100644 index 0000000000..d58049fb35 --- /dev/null +++ b/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/Application.java @@ -0,0 +1,11 @@ +package com.baeldung; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Application { + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} diff --git a/spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/QueryStringController.java b/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/QueryStringController.java similarity index 100% rename from spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/QueryStringController.java rename to spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/QueryStringController.java diff --git a/spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/RequestParamController.java b/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/RequestParamController.java similarity index 100% rename from spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/RequestParamController.java rename to spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/RequestParamController.java diff --git a/spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/UserDto.java b/spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/UserDto.java similarity index 100% rename from spring-web-modules/spring-mvc-basics-5/src/main/java/com/baeldung/requestparam/UserDto.java rename to spring-web-modules/spring-mvc-basics-6/src/main/java/com/baeldung/requestparam/UserDto.java diff --git a/spring-web-modules/spring-mvc-basics-6/src/main/resources/application.properties b/spring-web-modules/spring-mvc-basics-6/src/main/resources/application.properties new file mode 100644 index 0000000000..935f91554b --- /dev/null +++ b/spring-web-modules/spring-mvc-basics-6/src/main/resources/application.properties @@ -0,0 +1 @@ +server.servlet.context-path=/spring-mvc-basics diff --git a/spring-web-modules/spring-mvc-basics-5/src/test/java/com/baeldung/requestparam/QueryStringControllerIntegrationTest.java b/spring-web-modules/spring-mvc-basics-6/src/test/java/com/baeldung/requestparam/QueryStringControllerIntegrationTest.java similarity index 100% rename from spring-web-modules/spring-mvc-basics-5/src/test/java/com/baeldung/requestparam/QueryStringControllerIntegrationTest.java rename to spring-web-modules/spring-mvc-basics-6/src/test/java/com/baeldung/requestparam/QueryStringControllerIntegrationTest.java diff --git a/spring-web-modules/spring-mvc-basics-6/src/test/resources/logback-test.xml b/spring-web-modules/spring-mvc-basics-6/src/test/resources/logback-test.xml new file mode 100644 index 0000000000..8d4771e308 --- /dev/null +++ b/spring-web-modules/spring-mvc-basics-6/src/test/resources/logback-test.xml @@ -0,0 +1,12 @@ + + + + + [%d{ISO8601}]-[%thread] %-5level %logger - %msg%n + + + + + + + \ No newline at end of file