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

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

Fixing errors

  • Property mode set to 100644
File size: 899 bytes
RevLine 
[1bcb2a8]1package com.example.moviezone;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
[eb226b2]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;
[1bcb2a8]10
[eb226b2]11
12@SpringBootApplication()
[1bcb2a8]13public 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.