Project

General

Profile

« Previous | Next » 

Revision 51155

enable / disable controllers via properties

View differences:

ProjectsController.java
30 30
import org.apache.commons.logging.Log;
31 31
import org.apache.commons.logging.LogFactory;
32 32
import org.springframework.beans.factory.annotation.Autowired;
33
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
33 34
import org.springframework.core.io.Resource;
34 35
import org.springframework.stereotype.Controller;
35 36
import org.springframework.web.bind.annotation.RequestMapping;
......
37 38
import org.springframework.web.bind.annotation.RequestParam;
38 39

  
39 40
@Controller
41
@ConditionalOnProperty(value = "openaire.exporter.enable.project", havingValue = "true")
40 42
@io.swagger.annotations.Api(tags = "OpenAIRE projects API", description = "the OpenAIRE projects API")
41 43
public class ProjectsController extends AbstractExporterController {
42 44

  

Also available in: Unified diff