|
Last change
on this file was 81cdf2d, checked in by Nikola Janev <nikolajanev57@…>, 8 days ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
955 bytes
|
| Line | |
|---|
| 1 | package com.nikola.web3ednevnikbackend;
|
|---|
| 2 |
|
|---|
| 3 | import com.fasterxml.jackson.databind.ObjectMapper;
|
|---|
| 4 | import org.springframework.boot.SpringApplication;
|
|---|
| 5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|---|
| 6 | import org.springframework.context.annotation.Bean;
|
|---|
| 7 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|---|
| 8 | import org.springframework.security.crypto.password.PasswordEncoder;
|
|---|
| 9 | import org.springframework.web.client.RestTemplate;
|
|---|
| 10 |
|
|---|
| 11 | @SpringBootApplication
|
|---|
| 12 | public 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.