Last change
on this file since b3f2adb was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago |
Adding project to repo
|
-
Property mode
set to
100644
|
File size:
690 bytes
|
Line | |
---|
1 | package com.example.eatys_app;
|
---|
2 |
|
---|
3 | import org.springframework.boot.SpringApplication;
|
---|
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
5 | import org.springframework.context.annotation.Bean;
|
---|
6 | import org.springframework.context.annotation.ComponentScan;
|
---|
7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
9 |
|
---|
10 |
|
---|
11 | @SpringBootApplication
|
---|
12 | public class EatysAppApplication {
|
---|
13 |
|
---|
14 | public static void main(String[] args) {
|
---|
15 | SpringApplication.run(EatysAppApplication.class, args);
|
---|
16 | }
|
---|
17 |
|
---|
18 |
|
---|
19 | @Bean
|
---|
20 | PasswordEncoder passwordEncoder() {
|
---|
21 | return new BCryptPasswordEncoder(10);
|
---|
22 | }
|
---|
23 |
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.