Last change
on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago |
all files
|
-
Property mode
set to
100644
|
File size:
646 bytes
|
Line | |
---|
1 | package com.example.demo;
|
---|
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 | @SpringBootApplication
|
---|
11 | public class DemoApplication {
|
---|
12 |
|
---|
13 | public static void main(String[] args) {
|
---|
14 | SpringApplication.run(DemoApplication.class, args);
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Bean
|
---|
18 | PasswordEncoder passwordEncoder ()
|
---|
19 | {
|
---|
20 | return new BCryptPasswordEncoder();
|
---|
21 | }
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.