main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
800 bytes
|
Rev | Line | |
---|
[c3268ca] | 1 | package com.example.kvizko;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.EntityManager;
|
---|
| 4 | import org.springframework.boot.SpringApplication;
|
---|
| 5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
| 6 | import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
|
---|
| 7 | import org.springframework.context.annotation.Bean;
|
---|
| 8 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 9 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | @SpringBootApplication(exclude={SecurityAutoConfiguration.class})
|
---|
| 13 | public class KvizkoApplication {
|
---|
| 14 |
|
---|
| 15 | public static void main(String[] args) {
|
---|
| 16 | SpringApplication.run(KvizkoApplication.class, args);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | @Bean
|
---|
| 20 | PasswordEncoder passwordEncoder()
|
---|
| 21 | {
|
---|
| 22 | return new BCryptPasswordEncoder(10);
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.