3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.remote
.config
;
12 import org
.springframework
.context
.annotation
.ComponentScan
;
13 import org
.springframework
.context
.annotation
.Configuration
;
14 import org
.springframework
.context
.annotation
.Import
;
15 import org
.springframework
.context
.annotation
.Profile
;
18 * @author a.kohlbecker
22 //@EnableWebMvc // do not add this since we are overriding WebMvcConfigurationSupport directly
23 @Profile({"default", "remoting"}) // see RESERVED_DEFAULT_PROFILE_NAME
25 @Import(value
={PreloadedBeans
.class}) // can not be replaced by @DependsOn("...") ?
26 //@DependsOn("objectMapperConfigurer")
27 @ComponentScan(basePackages
= {
28 "eu.etaxonomy.cdm.remote.l10n",
29 "eu.etaxonomy.cdm.remote.controller",
30 "eu.etaxonomy.cdm.remote.staticSwagger",
31 "eu.etaxonomy.cdm.remote.service",
32 "eu.etaxonomy.cdm.remote.config"
35 public class CdmSpringMVCConfigDefault
extends CdmSpringMVCConfig
{
37 public CdmSpringMVCConfigDefault() {
39 logger
.info("====================================");
40 logger
.info(" CdmSpringMVCConfiguration: Default");
41 logger
.info("====================================");