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
|
Rev | Line | |
---|
[6a3a178] | 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;
|
---|
[1ad8e64] | 6 | import org.springframework.context.annotation.Bean;
|
---|
| 7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
[84d0fbb] | 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;
|
---|
[6a3a178] | 13 |
|
---|
| 14 | @SpringBootApplication
|
---|
| 15 | @EnableEncryptableProperties
|
---|
| 16 | public class TripPlannerApplication {
|
---|
| 17 |
|
---|
[1ad8e64] | 18 | @Bean
|
---|
| 19 | BCryptPasswordEncoder bCryptPasswordEncoder(){
|
---|
| 20 | return new BCryptPasswordEncoder();
|
---|
| 21 | }
|
---|
[84d0fbb] | 22 |
|
---|
[6a3a178] | 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.