source: src/main/java/mk/ukim/finki/eglas/EGlasApplication.java@ ac151d1

main
Last change on this file since ac151d1 was ac151d1, checked in by David <darsov2@…>, 11 days ago

initial

  • Property mode set to 100644
File size: 620 bytes
Line 
1package mk.ukim.finki.eglas;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
5import org.springframework.context.annotation.Bean;
6import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
7import org.springframework.security.crypto.password.PasswordEncoder;
8
9@SpringBootApplication
10public class EGlasApplication {
11
12 public static void main(String[] args) {
13 SpringApplication.run(EGlasApplication.class, args);
14 }
15
16 @Bean
17 PasswordEncoder passwordEncoder() {
18 return new BCryptPasswordEncoder(10);
19 }
20
21
22}
Note: See TracBrowser for help on using the repository browser.