Blame view

src/main/java/fr/plil/sio/web/mvc/ApplicationMvcConfiguration.java 575 Bytes
aa193b2b   Julien Iguchi-Cartigny   First version
1
2
  package fr.plil.sio.web.mvc;
  
8efec875   Julien Iguchi-Cartigny   switch to spring ...
3
  
88ff471f   Julien Cartigny   Switching to spri...
4
  import org.springframework.boot.SpringBootConfiguration;
aa193b2b   Julien Iguchi-Cartigny   First version
5
  import org.springframework.context.annotation.Bean;
322c9502   Julien Cartigny   Ad Spring securit...
6
7
  import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
  import org.springframework.security.crypto.password.PasswordEncoder;
5e965ce4   Julien Iguchi-Cartigny   working version
8
  import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
aa193b2b   Julien Iguchi-Cartigny   First version
9
  
88ff471f   Julien Cartigny   Switching to spri...
10
  @SpringBootConfiguration
0399d385   Julien Iguchi-Cartigny   Adding user form
11
  public class ApplicationMvcConfiguration extends WebMvcConfigurerAdapter {
5e965ce4   Julien Iguchi-Cartigny   working version
12
  
aa193b2b   Julien Iguchi-Cartigny   First version
13
      @Bean
322c9502   Julien Cartigny   Ad Spring securit...
14
15
      public PasswordEncoder passwordEncoder() {
          return new BCryptPasswordEncoder();
aa193b2b   Julien Iguchi-Cartigny   First version
16
      }
aa193b2b   Julien Iguchi-Cartigny   First version
17
  }