source: backend/web3-Ednevnik-Backend/src/main/java/com/nikola/web3ednevnikbackend/Web3EdnevnikBackendApplication.java@ 81cdf2d

Last change on this file since 81cdf2d was 81cdf2d, checked in by Nikola Janev <nikolajanev57@…>, 8 days ago

initial commit

  • Property mode set to 100644
File size: 955 bytes
Line 
1package com.nikola.web3ednevnikbackend;
2
3import com.fasterxml.jackson.databind.ObjectMapper;
4import org.springframework.boot.SpringApplication;
5import org.springframework.boot.autoconfigure.SpringBootApplication;
6import org.springframework.context.annotation.Bean;
7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
8import org.springframework.security.crypto.password.PasswordEncoder;
9import org.springframework.web.client.RestTemplate;
10
11@SpringBootApplication
12public class Web3EdnevnikBackendApplication {
13
14 public static void main(String[] args) {
15 SpringApplication.run(Web3EdnevnikBackendApplication.class, args);
16 }
17
18 @Bean
19 public PasswordEncoder passwordEncoder() {
20 return new BCryptPasswordEncoder();
21 }
22
23
24 @Bean
25 public ObjectMapper objectMapper() {
26 return new ObjectMapper();
27 }
28
29 @Bean
30 public RestTemplate restTemplate() {
31 return new RestTemplate();
32 }
33}
34
35
Note: See TracBrowser for help on using the repository browser.