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
|
Rev | Line | |
---|
[75464a6] | 1 | package com.example.autopartz;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.boot.SpringApplication;
|
---|
| 4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
[ae042f4] | 5 | import org.springframework.context.annotation.Bean;
|
---|
| 6 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 7 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
[7d43957] | 8 | import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
|
---|
[75464a6] | 9 |
|
---|
| 10 | @SpringBootApplication
|
---|
| 11 | public 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.