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

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

pre final presentation

  • Property mode set to 100644
File size: 901 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;
8import org.springframework.web.cors.CorsConfiguration;
9import org.springframework.web.cors.CorsConfigurationSource;
10import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
11
12import java.util.Arrays;
13
14@SpringBootApplication
15@EnableEncryptableProperties
16public class TripPlannerApplication {
17
18 @Bean
19 BCryptPasswordEncoder bCryptPasswordEncoder(){
20 return new BCryptPasswordEncoder();
21 }
22
23 public static void main(String[] args) {
24 SpringApplication.run(TripPlannerApplication.class, args);
25 }
26
27}
Note: See TracBrowser for help on using the repository browser.