JAVA-31190: Preparation for migrating spring-boot-modules to version 3. (#15834)
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
+1
-1
@@ -20,7 +20,7 @@ public class EnumMappingController {
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
public String getByLevel(@RequestParam(required = false) Level level) {
|
||||
public String getByLevel(@RequestParam(name = "level", required = false) Level level) {
|
||||
if (level != null) {
|
||||
return level.name();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user