diff --git a/wise-api/src/main/java/com/wisemapping/Application.java b/wise-api/src/main/java/com/wisemapping/Application.java index 5283b2f5..9909ddda 100644 --- a/wise-api/src/main/java/com/wisemapping/Application.java +++ b/wise-api/src/main/java/com/wisemapping/Application.java @@ -2,6 +2,7 @@ package com.wisemapping; import com.wisemapping.config.common.CommonConfig; import com.wisemapping.config.rest.RestAppConfig; +import com.wisemapping.config.rest.WebConfig; import org.springframework.boot.WebApplicationType; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.context.annotation.Bean; @@ -12,7 +13,7 @@ public class Application { public static void main(String[] args) { new SpringApplicationBuilder() .parent(CommonConfig.class).web(WebApplicationType.NONE) - .child(RestAppConfig.class).web(WebApplicationType.SERVLET) + .child(RestAppConfig.class, WebConfig.class).web(WebApplicationType.SERVLET) // .sibling(MvcAppConfig.class).web(WebApplicationType.SERVLET) .run(args); }