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
|
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;
|
---|
[6a3a178] | 8 |
|
---|
| 9 | @SpringBootApplication
|
---|
| 10 | @EnableEncryptableProperties
|
---|
| 11 | public class TripPlannerApplication {
|
---|
| 12 |
|
---|
[1ad8e64] | 13 | @Bean
|
---|
| 14 | BCryptPasswordEncoder bCryptPasswordEncoder(){
|
---|
| 15 | return new BCryptPasswordEncoder();
|
---|
| 16 | }
|
---|
[6a3a178] | 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.