source: src/main/java/com/example/moviezone/MovieZoneApplication.java@ a073dad

Last change on this file since a073dad was eb226b2, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixing errors

  • Property mode set to 100644
File size: 899 bytes
Line 
1package com.example.moviezone;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
5import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
6import org.springframework.context.annotation.Bean;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
8import org.springframework.security.crypto.password.PasswordEncoder;
9import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
10
11
12@SpringBootApplication()
13public 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.