serving swagger api doc in production mode (default) from static files:
[cdmlib.git] / cdmlib-remote-webapp / src / main / java / eu / etaxonomy / cdm / remote / config / CdmSpringMVCConfigDefault.java
1 // $Id$
2 /**
3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.cdm.remote.config;
11
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;
16
17 /**
18 * @author a.kohlbecker
19 * @date Feb 22, 2016
20 *
21 */
22 //@EnableWebMvc // do not add this since we are overriding WebMvcConfigurationSupport directly
23 @Profile("default") // see RESERVED_DEFAULT_PROFILE_NAME
24 @Configuration
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"
33 }
34 )
35 public class CdmSpringMVCConfigDefault extends CdmSpringMVCConfig {
36
37 public CdmSpringMVCConfigDefault() {
38 super();
39 logger.info("====================================");
40 logger.info(" CdmSpringMVCConfiguration: Default");
41 logger.info("====================================");
42 }
43
44 }