Webconfig.

main
Paulo Gustavo Veiga 2024-02-17 18:21:33 -08:00
parent 3106b3e94a
commit bf3b082bdf
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}