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