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

main
Last change on this file since 84652fb was 7d43957, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Added functionalities

  • Property mode set to 100644
File size: 816 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;
8import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
9
10@SpringBootApplication
11public class AutoPartzApplication {
12
13 public static void main(String[] args) {
14 SpringApplication.run(AutoPartzApplication.class, args);
15 }
16 @Bean
17 PasswordEncoder passwordEncoder() {
18 return new BCryptPasswordEncoder(10);
19 }
20 @Bean
21 public SpringSecurityDialect securityDialect() {
22 return new SpringSecurityDialect();
23 }
24
25}
Note: See TracBrowser for help on using the repository browser.