Last change
on this file since 5e4f0d7 was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
785 bytes
|
Line | |
---|
1 | package com.example.medweb;
|
---|
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.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
7 | import org.springframework.security.crypto.factory.PasswordEncoderFactories;
|
---|
8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
9 |
|
---|
10 |
|
---|
11 | @SpringBootApplication
|
---|
12 | public class MedwebApplication {
|
---|
13 |
|
---|
14 |
|
---|
15 | public static void main(String[] args) {
|
---|
16 |
|
---|
17 | SpringApplication.run(MedwebApplication.class, args);
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Bean
|
---|
21 | public PasswordEncoder passwordEncoder () {
|
---|
22 | return new BCryptPasswordEncoder(10);
|
---|
23 | //return PasswordEncoderFactories.createDelegatingPasswordEncoder();
|
---|
24 | }
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.