Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2016 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.remote.config;
10

    
11
import org.springframework.context.annotation.ComponentScan;
12
import org.springframework.context.annotation.Configuration;
13
import org.springframework.context.annotation.Import;
14
import org.springframework.context.annotation.Profile;
15

    
16
/**
17
 * @author a.kohlbecker
18
 \* @since Feb 22, 2016
19
 *
20
 */
21
//@EnableWebMvc // do not add this since we are overriding WebMvcConfigurationSupport directly
22
@Profile("!swagger")
23
@Configuration
24
@Import(value={PreloadedBeans.class}) // can not be replaced by @DependsOn("...") ?
25
//@DependsOn("objectMapperConfigurer")
26
@ComponentScan(basePackages = {
27
     "eu.etaxonomy.cdm.remote.l10n",
28
     "eu.etaxonomy.cdm.remote.controller",
29
     "eu.etaxonomy.cdm.remote.staticSwagger",
30
     "eu.etaxonomy.cdm.remote.service",
31
     "eu.etaxonomy.cdm.remote.config"
32
     }
33
)
34
public class CdmSpringMVCConfigDefault extends CdmSpringMVCConfig {
35

    
36
    public CdmSpringMVCConfigDefault() {
37
        super();
38
        logger.info(" ==========================================");
39
        logger.info("  Spring Configuration Profile: Default");
40
        logger.info(" ==========================================");
41
    }
42

    
43
}
(2-2/5)