Skip to content

Commit 9492ea6

Browse files
committed
Tried to fix the model binding
1 parent 81c2f02 commit 9492ea6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/javawebstack/framework/WebApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public abstract class WebApplication {
3939
private final Config config = new Config();
4040
private final Crypt crypt;
4141
private final List<Module> modules = new ArrayList<>();
42-
private final ModelBindParamTransformer modelBindParamTransformer = new ModelBindParamTransformer();
42+
private final ModelBindParamTransformer modelBindParamTransformer;
4343
private final CommandSystem commandSystem = new CommandSystem();
4444
private final Map<String, Seeder> seeders = new HashMap<>();
4545
private final I18N translation = new I18N();
@@ -88,6 +88,7 @@ public WebApplication(){
8888
ex.printStackTrace();
8989
}
9090
}
91+
modelBindParamTransformer = new ModelBindParamTransformer();
9192

9293
modules.forEach(m -> m.beforeSetupInjection(this, injector));
9394
setupInjection(injector);

0 commit comments

Comments
 (0)