main
Last change
on this file was f4b4afa, checked in by Nikola Todoroski <nikola.todoroski@…>, 6 months ago |
Pushed whole project, original project location on github:https://github.com/hehxd/Tech-Harbor
|
-
Property mode
set to
100644
|
File size:
625 bytes
|
Rev | Line | |
---|
[f4b4afa] | 1 | package tech.techharbor;
|
---|
| 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.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 7 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
| 8 |
|
---|
| 9 | @SpringBootApplication
|
---|
| 10 | public class TechHarborApplication {
|
---|
| 11 |
|
---|
| 12 | public static void main(String[] args) {
|
---|
| 13 | SpringApplication.run(TechHarborApplication.class, args);
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | @Bean
|
---|
| 17 | PasswordEncoder passwordEncoder() {
|
---|
| 18 | return new BCryptPasswordEncoder(10);
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.