Сообщения

MS Lesson3: Demo App with Spring Boot

1. spring-boot-starter-web  spring - boot-starter-web  Spring Boot -da   web  tətbi qi  yaz maq  üçün əsas starter dependency -dir. Q ı sa desək, bu  dependency -ni  əlavə edəndə  sən ə  avtomatik  verir : Spring  MVC  ( @RestController ,   @GetMapping , və  s.) Embedded  server ( Tomcat )  — ayrıca  server qur mağa  ehtiyac  olmur JSON  serialize /deserialize ( Jackson )  — Java  object  ⇄ JSON HTTP  request /response  işl əmə  infrastrukt uru Validation  ilə  inteqrasiya  üçün  baza   (dig ər  starter -l ərl ə  birlik də) Y əni  API  yaz maq  üçün  lazım  olan  minimum   “web  stack”-i bir  paket də  gətirir . Məsələn ,   GET / students  endpoint -i  yaz ıb  app -i  run  edəndə  artıq   localhost :8080  üz ərində işləyir ...

MS Lesson2: GIT

Изображение
-> Installation of Git and setting SSH key 1. https://git-scm.com/downloads 2. open gitlab account 3. generate SSH key: ssh-keygen -o -t rsa -C "emailaddress"  4. gitlab -> preferences -> SSH Keys  -> git add . veya git add * command This command adds files from working directory to staging area -> git commit -m "reasonable message" This command adds files from staging area to local repository -> git push  This command adds files from local repository to remote repository -> git pull This command brings metadata, history and files -> git fetch  This command brings only metadata -> vi file name - creates and opens file; cat file name - show content of file -> Conflicts in git <<<<<<< HEAD // our branch Number one ======= Git is cool >>>>>>> master -> git log This command shows all commits with its commit hash -> .gitignore file This file ignores specific files to be tracked by git -> git...

MS. Lesson1: Monolithic vs Microservice architecture

Изображение
  ===========================================================================

PayCell

1. Ilkin olaraq ConfigurationController controllerinin ne ish gorduyunu arashdiririq: package com.azercell.paycell.paycellconsumer.controller; import com.azercell.paycell.paycellconsumer.model.ShortNumberConfiguration; import com.azercell.paycell.paycellconsumer.model.dto.ShortNumberConfigurationResponseDto; import com.azercell.paycell.paycellconsumer.service.ShortNumberConfigurationService; import io.swagger.v3.oas.annotations. Operation ; import io.swagger.v3.oas.annotations.tags. Tag ; import lombok. RequiredArgsConstructor ; import org.springframework.web.bind.annotation. GetMapping ; import org.springframework.web.bind.annotation. RequestMapping ; import org.springframework.web.bind.annotation. RestController ; import java.util.List; import java.util.stream.Collectors; @RestController @RequiredArgsConstructor @Tag (name = "ConfigurationController" ) @RequestMapping ( "/configurations" ) public class ConfigurationController { private final ShortNumberConfigu...