Skip to content

Commit 1d34701

Browse files
authored
Merge pull request #1767 from jonjomckay/fix-mvc-reflection-fallback
Fixed invalid module name being used for MVC reflection fallback
2 parents e3d594c + e46cb22 commit 1d34701

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)