main
Last change
on this file since 4d67d70 was 7d43957, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago |
Added functionalities
|
-
Property mode
set to
100644
|
File size:
816 bytes
|
Line | |
---|
1 | package com.example.autopartz;
|
---|
2 |
|
---|
3 | import org.springframework.boot.SpringApplication;
|
---|
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
5 | import org.springframework.context.annotation.Bean;
|
---|
6 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
7 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
8 | import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
|
---|
9 |
|
---|
10 | @SpringBootApplication
|
---|
11 | public 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.