Skip to content

Commit e46cb22

Browse files
committed
Fixed invalid module name being used for MVC reflection fallback
1 parent e3d594c commit e46cb22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jooby/src/main/java/io/jooby/Jooby.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ private void joobyRunHook(ClassLoader loader, Server server) {
11221122
*/
11231123
private Optional<MvcFactory> mvcReflectionFallback(Class source, ClassLoader classLoader) {
11241124
try {
1125-
String moduleName = source.getName() + "$Factory";
1125+
String moduleName = source.getName() + "$Module";
11261126
Class<?> moduleType = classLoader.loadClass(moduleName);
11271127
Constructor<?> constructor = moduleType.getDeclaredConstructor();
11281128
getLog().debug("Loading mvc using reflection: " + source);

0 commit comments

Comments
 (0)