source: src/main/java/com/project/beautycenter/BeautyCenterApplication.java

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
Line 
1package com.project.beautycenter;
2
3import com.project.beautycenter.service.UsersService;
4import com.project.beautycenter.service.impl.UsersServiceImpl;
5import org.springframework.boot.SpringApplication;
6import org.springframework.boot.autoconfigure.SpringBootApplication;
7import org.springframework.context.annotation.Bean;
8import org.springframework.security.core.userdetails.UserDetailsService;
9import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
10import org.springframework.security.crypto.password.PasswordEncoder;
11
12@SpringBootApplication
13public 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.