Ignore:
Timestamp:
01/04/23 02:49:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ab952ab
Parents:
6832924
Message:

Configured spring security, changed spring version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/AutoPartzApplication.java

    r6832924 rae042f4  
    33import org.springframework.boot.SpringApplication;
    44import org.springframework.boot.autoconfigure.SpringBootApplication;
     5import org.springframework.context.annotation.Bean;
     6import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
     7import org.springframework.security.crypto.password.PasswordEncoder;
    58
    69@SpringBootApplication
     
    1013        SpringApplication.run(AutoPartzApplication.class, args);
    1114    }
     15    @Bean
     16    PasswordEncoder passwordEncoder() {
     17        return new BCryptPasswordEncoder(10);
     18    }
     19
    1220
    1321}
Note: See TracChangeset for help on using the changeset viewer.