Last change
on this file was 850b344, checked in by Tamara Simikj <tamara.simic12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
833 bytes
|
Rev | Line | |
---|
[850b344] | 1 | package com.project.beautycenter;
|
---|
| 2 |
|
---|
| 3 | import com.project.beautycenter.service.UsersService;
|
---|
| 4 | import com.project.beautycenter.service.impl.UsersServiceImpl;
|
---|
| 5 | import org.springframework.boot.SpringApplication;
|
---|
| 6 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
| 7 | import org.springframework.context.annotation.Bean;
|
---|
| 8 | import org.springframework.security.core.userdetails.UserDetailsService;
|
---|
| 9 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 10 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
| 11 |
|
---|
| 12 | @SpringBootApplication
|
---|
| 13 | public class BeautyCenterApplication {
|
---|
| 14 |
|
---|
| 15 | public static void main(String[] args) {
|
---|
| 16 | SpringApplication.run(BeautyCenterApplication.class, args);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | @Bean
|
---|
| 20 | public PasswordEncoder passwordEncoder(){
|
---|
| 21 | return new BCryptPasswordEncoder();
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.