Skip to content

Instantly share code, notes, and snippets.

@ck1125
Created August 7, 2012 20:06
Show Gist options
  • Save ck1125/3288901 to your computer and use it in GitHub Desktop.
Save ck1125/3288901 to your computer and use it in GitHub Desktop.
optional request body annotation
import java.lang.annotation.Documented
import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OptionalRequestBody {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment