[
https://issues.apache.org/jira/browse/SCB-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
何一乐 updated SCB-838:
--------------------
Description:
@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
was:
@GetMapping("intCookieWithDefault")
public int intCookieWithDefault(@CookieValue(value = "input", defaultValue =
"13") int input) {
return input;
}
spring mvc @CookieValue do not support defaultValue
> 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
>
> @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
(v7.6.3#76005)