Webconfig.
parent
3106b3e94a
commit
bf3b082bdf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue