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:
Pablo Aragonés López
2022-05-17 21:02:03 +02:00
committed by GitHub
parent c253eb6bd8
commit f57604bef0
3 changed files with 41 additions and 0 deletions
@@ -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!";
}
}