source: src/main/java/com/example/medweb/MedwebApplication.java@ 7eed782

Last change on this file since 7eed782 was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 785 bytes
RevLine 
[e5fefbd]1package com.example.medweb;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
5import org.springframework.context.annotation.Bean;
6import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
7import org.springframework.security.crypto.factory.PasswordEncoderFactories;
8import org.springframework.security.crypto.password.PasswordEncoder;
9
10
11@SpringBootApplication
12public class MedwebApplication {
13
14
15 public static void main(String[] args) {
16
17 SpringApplication.run(MedwebApplication.class, args);
18 }
19
20 @Bean
21 public PasswordEncoder passwordEncoder () {
22 return new BCryptPasswordEncoder(10);
23 //return PasswordEncoderFactories.createDelegatingPasswordEncoder();
24 }
25
26}
Note: See TracBrowser for help on using the repository browser.