main
Last change
on this file was 980eeda, checked in by Test <matonikolov77@…>, 2 years ago |
Restructuring project
|
-
Property mode
set to
100644
|
File size:
651 bytes
|
Rev | Line | |
---|
[6e7b472] | 1 | package com.wediscussmovies.project;
|
---|
| 2 |
|
---|
[e0ef1b1] | 3 |
|
---|
[6e7b472] | 4 | import org.springframework.boot.SpringApplication;
|
---|
| 5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
[e0ef1b1] | 6 | import org.springframework.context.annotation.Bean;
|
---|
| 7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
[6e7b472] | 9 |
|
---|
| 10 | @SpringBootApplication
|
---|
| 11 | public class WeDiscussMoviesApplication {
|
---|
| 12 |
|
---|
| 13 | public static void main(String[] args) {
|
---|
[3ded84d] | 14 |
|
---|
[6e7b472] | 15 | SpringApplication.run(WeDiscussMoviesApplication.class, args);
|
---|
| 16 | }
|
---|
[e0ef1b1] | 17 | @Bean
|
---|
| 18 | PasswordEncoder getPasswordEncoder(){
|
---|
| 19 | return new BCryptPasswordEncoder(10);
|
---|
| 20 | }
|
---|
[6e7b472] | 21 |
|
---|
[3ded84d] | 22 |
|
---|
[6e7b472] | 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.