Last change
on this file since d09caa7 was eb226b2, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Fixing errors
|
-
Property mode
set to
100644
|
File size:
899 bytes
|
Line | |
---|
1 | package com.example.moviezone;
|
---|
2 |
|
---|
3 | import org.springframework.boot.SpringApplication;
|
---|
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
5 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
---|
6 | import org.springframework.context.annotation.Bean;
|
---|
7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
9 | import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
|
---|
10 |
|
---|
11 |
|
---|
12 | @SpringBootApplication()
|
---|
13 | public class MovieZoneApplication {
|
---|
14 |
|
---|
15 | public static void main(String[] args) {
|
---|
16 | SpringApplication.run(MovieZoneApplication.class, args);
|
---|
17 | }
|
---|
18 | @Bean
|
---|
19 | PasswordEncoder passwordEncoder() {
|
---|
20 | return new BCryptPasswordEncoder(10);
|
---|
21 | }
|
---|
22 | @Bean
|
---|
23 | public SpringSecurityDialect securityDialect() {
|
---|
24 | return new SpringSecurityDialect();
|
---|
25 | }
|
---|
26 |
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.