You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2022/09/29 13:10:00 UTC

[jira] [Updated] (SCB-838) SCB-838 @CookieValue do not support defaultValue

     [ https://issues.apache.org/jira/browse/SCB-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liubao updated SCB-838:
-----------------------
    Fix Version/s: java-chassis-2.9.0

> SCB-838  @CookieValue do not support defaultValue
> -------------------------------------------------
>
>                 Key: SCB-838
>                 URL: https://issues.apache.org/jira/browse/SCB-838
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: 何一乐
>            Priority: Major
>             Fix For: java-chassis-2.9.0
>
>
> @GetMapping("intCookieWithDefault")
>  public int intCookieWithDefault(@CookieValue(value = "input", defaultValue = "13") int input)
> { return input; }
> @Path("intCookieWithDefault")
>  @GET
>  public int intCookieWithDefault(@CookieParam(value = "input") @DefaultValue("13") int input) {
>  return pojo.intBody(input);
>  }
> spring mvc  @CookieValue and jaxrs @CookieParam do not support defaultValue



--
This message was sent by Atlassian Jira
(v8.20.10#820010)