-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-1463: support concatenated strings while extracting request mappin…
…g path information
- Loading branch information
1 parent
b537496
commit c28c6d8
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../test-request-mapping-symbols/src/main/java/org/test/MappingsWithConcatenatedStrings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.test; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PutMapping; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.PatchMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import static org.springframework.web.bind.annotation.RequestMethod.PUT; | ||
|
||
public class MappingsWithConcatenatedStrings { | ||
|
||
@GetMapping("/path1" + "/path2") | ||
public void concatenatedPathMapping() { | ||
} | ||
|
||
@GetMapping("/path1/" + Constants.REQUEST_MAPPING_PATH) | ||
public void concatenatedPathMappingWithConstant() { | ||
} | ||
|
||
} |