@Documented @Retention(value=RUNTIME) @Target(value={TYPE,ANNOTATION_TYPE}) @Bean @DefaultScope(value=jakarta.inject.Singleton.class) public @interface Controller
Indicates that the role of a class is a controller within an application.
@AliasFor(annotation=UriMapping.class, member="value") public abstract String value
This attribute returns the base URI of the controller
A value of /
can be used to map a controller
to the root URI.
@AliasFor(annotation=Produces.class, member="value") public abstract String[] produces
@AliasFor(annotation=Consumes.class, member="value") public abstract String[] consumes
public abstract String port
The member is defined as a string to allow resolving the port value from configuration. For example: member="${my.port.number}"