Merge pull request #16386 from f0rb/BAEL-7741

BAEL-6276: Move code for "Getting Query String Parameters from HttpServletRequest"
This commit is contained in:
Liam Williams 2024-04-15 13:01:21 +01:00 committed by GitHub
commit 394b88c019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 75 additions and 1 deletions

View File

@ -23,6 +23,7 @@
<module>spring-mvc-basics-3</module>
<module>spring-mvc-basics-4</module>
<module>spring-mvc-basics-5</module>
<module>spring-mvc-basics-6</module>
<module>spring-mvc-crash</module>
<module>spring-mvc-file</module>
<module>spring-mvc-forms-jsp</module>

View File

@ -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)

View File

@ -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)

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-mvc-basics-6</artifactId>
<version>0.1-SNAPSHOT</version>
<name>spring-mvc-basics-6</name>
<packaging>jar</packaging>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-boot-3</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<finalName>spring-mvc-basics-5</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.baeldung.Application</mainClass>
<layout>JAR</layout>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -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);
}
}

View File

@ -0,0 +1 @@
server.servlet.context-path=/spring-mvc-basics

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="15 seconds" debug="false">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{ISO8601}]-[%thread] %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>