Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

@Retention(CLASS) @Target({TYPE})

public @interface RestControllerAdvice

The same as ControllerAdvice; the name Spring applications use for advice whose handlers answer with data rather than views.

A bean whose ExceptionHandler methods apply to every controller.

Several are asked in Order order, the unordered ones last by bean name, and only after the failing controller’s own handlers declined. The build writes the dispatch to each handler as code; nothing is found by reflection.

Methods

public abstract String value() default ""The bean name; empty for the default.
public abstract String[] basePackages() default {}Limits the advice to controllers in these packages and their subpackages; empty for every controller.

Method details

value

public abstract String value() default ""
The bean name; empty for the default.

basePackages

public abstract String[] basePackages() default {}
Limits the advice to controllers in these packages and their subpackages; empty for every controller.