source: src/main/java/com/example/eatys_app/EatysAppApplication.java@ b3f2adb

Last change on this file since b3f2adb was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago

Adding project to repo

  • Property mode set to 100644
File size: 690 bytes
Line 
1package com.example.eatys_app;
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
11@SpringBootApplication
12public class EatysAppApplication {
13
14 public static void main(String[] args) {
15 SpringApplication.run(EatysAppApplication.class, args);
16 }
17
18
19 @Bean
20 PasswordEncoder passwordEncoder() {
21 return new BCryptPasswordEncoder(10);
22 }
23
24}
Note: See TracBrowser for help on using the repository browser.