source: source/MovieZilla-master/src/main/java/com/example/demo/DemoApplication.java

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 
1package com.example.demo;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
5import org.springframework.context.annotation.Bean;
6import org.springframework.context.annotation.ComponentScan;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
8import org.springframework.security.crypto.password.PasswordEncoder;
9
10@SpringBootApplication
11public class DemoApplication {
12
13 public static void main(String[] args) {
14 SpringApplication.run(DemoApplication.class, args);
15 }
16
17 @Bean
18 PasswordEncoder passwordEncoder ()
19 {
20return new BCryptPasswordEncoder();
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.