source: src/main/java/com/example/autopartz/AutoPartzApplication.java@ ab952ab

main
Last change on this file since ab952ab was ae042f4, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 2 years ago

Configured spring security, changed spring version

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