source: trip-planner/src/main/java/finki/diplomska/tripplanner/TripPlannerApplication.java@ 1ad8e64

Last change on this file since 1ad8e64 was 1ad8e64, checked in by Ema <ema_spirova@…>, 3 years ago

spring security

  • Property mode set to 100644
File size: 689 bytes
Line 
1package finki.diplomska.tripplanner;
2
3import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
4import org.springframework.boot.SpringApplication;
5import org.springframework.boot.autoconfigure.SpringBootApplication;
6import org.springframework.context.annotation.Bean;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
8
9@SpringBootApplication
10@EnableEncryptableProperties
11public class TripPlannerApplication {
12
13 @Bean
14 BCryptPasswordEncoder bCryptPasswordEncoder(){
15 return new BCryptPasswordEncoder();
16 }
17 public static void main(String[] args) {
18 SpringApplication.run(TripPlannerApplication.class, args);
19 }
20
21}
Note: See TracBrowser for help on using the repository browser.