main
Last change
on this file since 9293100 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
801 bytes
|
Line | |
---|
1 | package com.example.rezevirajmasa.demo;
|
---|
2 |
|
---|
3 | import jakarta.websocket.Encoder;
|
---|
4 | import org.springframework.boot.SpringApplication;
|
---|
5 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
---|
6 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
7 | import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
|
---|
8 | import org.springframework.context.annotation.Bean;
|
---|
9 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
10 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
11 |
|
---|
12 | @SpringBootApplication
|
---|
13 | public class DemoApplication {
|
---|
14 |
|
---|
15 | public static void main(String[] args) {
|
---|
16 | SpringApplication.run(DemoApplication.class, args);
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Bean
|
---|
20 | public PasswordEncoder passwordEncoder() {
|
---|
21 | return new BCryptPasswordEncoder();
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.