Request Mapping value in properties file (#12226)
* Exception Handler implemented for Spring Security Resource Server * Renamed test class name to solve PMD Failure * Code formatting * Using property parameter as Request Mapping value * Renamed test class name to solve PMD Failure
This commit is contained in:
committed by
GitHub
parent
c253eb6bd8
commit
f57604bef0
+15
@@ -0,0 +1,15 @@
|
||||
package com.baeldung.requestmappingvalue;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${request.value}")
|
||||
public class WelcomeController {
|
||||
|
||||
@GetMapping
|
||||
public String getWelcomeMessage() {
|
||||
return "Welcome to Baeldung!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user