Last change
on this file since fdfbdde was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
673 bytes
|
Line | |
---|
1 | package com.example.task;
|
---|
2 |
|
---|
3 | import org.springframework.boot.SpringApplication;
|
---|
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
5 | import org.springframework.context.annotation.Bean;
|
---|
6 | import org.springframework.jdbc.core.JdbcTemplate;
|
---|
7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
9 |
|
---|
10 | @SpringBootApplication
|
---|
11 | public class TaskApplication {
|
---|
12 |
|
---|
13 | public static void main(String[] args) {
|
---|
14 | SpringApplication.run(TaskApplication.class, args);
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Bean
|
---|
18 | public PasswordEncoder passwordEncoder() {
|
---|
19 | return new BCryptPasswordEncoder(10);
|
---|
20 | }
|
---|
21 |
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.