Skip to content

[minor] Default route suffix doesn't match reflection-based MVC #3657

@csisy

Description

@csisy

Hi.

Just found out that the default jooby.routerSuffix is an underscore and I can verify that those classes are created. However, the Jooby#mvcReflectionFallback tries to load the class with the $Module suffix:

String moduleName = source.getName() + "$Module";

This is only a problem if the services flag is disabled (we disable it during development time). As a workaround, we can force the $Module suffix with the routerSuffix parameter.

It would be convenient to use the same default value in both places.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions