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