Skip to content

Support controller method parameter annotations on an interface #480

Closed
@JamesPeters98

Description

@JamesPeters98

It's currently not possible to define interfaces with the @Argument parameter annotation.

i,e:

interface HelloWorld {
  @QueryMapping
  String helloWorld(@Argument String name);
}
@Controller
class HelloWorldImpl implements HelloWorld {
  @Override
  String helloWorld(String name) {
    return "Hello "+name;
  }
}

This doesn't work and requires the implementation to also be annotated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions