Last change
on this file was bdd6491, checked in by Ema <ema_spirova@…>, 3 years ago |
pre final presentation
|
-
Property mode
set to
100644
|
File size:
901 bytes
|
Line | |
---|
1 | package finki.diplomska.tripplanner;
|
---|
2 |
|
---|
3 | import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
|
---|
4 | import org.springframework.boot.SpringApplication;
|
---|
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
6 | import org.springframework.context.annotation.Bean;
|
---|
7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
8 | import org.springframework.web.cors.CorsConfiguration;
|
---|
9 | import org.springframework.web.cors.CorsConfigurationSource;
|
---|
10 | import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
---|
11 |
|
---|
12 | import java.util.Arrays;
|
---|
13 |
|
---|
14 | @SpringBootApplication
|
---|
15 | @EnableEncryptableProperties
|
---|
16 | public 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.