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

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

spring security 2.0

  • Property mode set to 100644
File size: 902 bytes
RevLine 
[6a3a178]1package finki.diplomska.tripplanner;
2
3import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
4import org.springframework.boot.SpringApplication;
5import org.springframework.boot.autoconfigure.SpringBootApplication;
[1ad8e64]6import org.springframework.context.annotation.Bean;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
[84d0fbb]8import org.springframework.web.cors.CorsConfiguration;
9import org.springframework.web.cors.CorsConfigurationSource;
10import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
11
12import java.util.Arrays;
[6a3a178]13
14@SpringBootApplication
15@EnableEncryptableProperties
16public class TripPlannerApplication {
17
[1ad8e64]18 @Bean
19 BCryptPasswordEncoder bCryptPasswordEncoder(){
20 return new BCryptPasswordEncoder();
21 }
[84d0fbb]22
23
[6a3a178]24 public static void main(String[] args) {
25 SpringApplication.run(TripPlannerApplication.class, args);
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.