Blame view

src/main/java/etunicorn/WebMvcConfig.java 570 Bytes
9182ba39   Geoffrey PREUD'HOMME   Ça affiche le num...
1
2
3
  package etunicorn;
  
  import org.springframework.context.annotation.Configuration;
3064f583   Geoffrey PREUD'HOMME   Copyright
4
5
  import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
  import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
9182ba39   Geoffrey PREUD'HOMME   Ça affiche le num...
6
7
  
  /**
3064f583   Geoffrey PREUD'HOMME   Copyright
8
9
10
   * etunicorn-server
   * Copyright © 2017 Le Club Info Polytech Lille
   * Tous droits réservés
9182ba39   Geoffrey PREUD'HOMME   Ça affiche le num...
11
12
13
14
15
16
17
18
19
20
   */
  
  @Configuration
  public class WebMvcConfig extends WebMvcConfigurerAdapter {
  
      @Override
      public void addInterceptors(InterceptorRegistry registry) {
          registry.addInterceptor(new GitHeaderInterceptor());
      }
  }