Skip to content

This module overrides OpenFeign/feign annotation processing to instead use standard ones supplied by the spring annotations specification.

License

Notifications You must be signed in to change notification settings

velo/feign-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feign-spring

Build Status Coverage Status Maven Central Issues Forks Stars

Feign Spring

This module overrides OpenFeign/feign annotation processing to instead use standard ones supplied by the spring annotations specification.

Currently Supported Annotation Processing

Feign only supports processing java interfaces (not abstract or concrete classes).

ISE is raised when any annotation's value is empty or null. Ex. Path("") raises an ISE.

Here are a list of behaviors currently supported.

Type Annotations

@RequestMapping

Appends the value to Target.url(). Can have tokens corresponding to @PathVariable annotations. The method sets the request method. The produces adds the first value as the Accept header. The consume adds the first value as the Content-Type header.

Method Annotations

@RequestMapping

Appends the value to Target.url(). Can have tokens corresponding to @PathVariable annotations. The method sets the request method.

Parameter Annotations

@PathVariable

Links the value of the corresponding parameter to a template variable declared in the path.

@RequestParam

Links the value of the corresponding parameter to a query parameter. When invoked, null will skip the query param.

About

This module overrides OpenFeign/feign annotation processing to instead use standard ones supplied by the spring annotations specification.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages