Ignore:
Timestamp:
11/29/21 22:35:07 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
84d0fbb
Parents:
8d391a1
Message:

spring security

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/src/main/java/finki/diplomska/tripplanner/TripPlannerApplication.java

    r8d391a1 r1ad8e64  
    44import org.springframework.boot.SpringApplication;
    55import org.springframework.boot.autoconfigure.SpringBootApplication;
     6import org.springframework.context.annotation.Bean;
     7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
    68
    79@SpringBootApplication
     
    911public class TripPlannerApplication {
    1012
     13    @Bean
     14    BCryptPasswordEncoder bCryptPasswordEncoder(){
     15        return new BCryptPasswordEncoder();
     16    }
    1117    public static void main(String[] args) {
    1218        SpringApplication.run(TripPlannerApplication.class, args);
Note: See TracChangeset for help on using the changeset viewer.