source: src/main/java/com/example/task/TaskApplication.java

Last change on this file 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 
1package com.example.task;
2
3import org.springframework.boot.SpringApplication;
4import org.springframework.boot.autoconfigure.SpringBootApplication;
5import org.springframework.context.annotation.Bean;
6import org.springframework.jdbc.core.JdbcTemplate;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
8import org.springframework.security.crypto.password.PasswordEncoder;
9
10@SpringBootApplication
11public 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.