Сообщения

AKB-Notification-Processor

ALTER SESSION SET TIME_ZONE = ' +04:00 '; SELECT css . id AS credit_subs_id, -- EVENT.CREDIT_SUBS_ID css . customer_id AS customer_id, -- EVENT.CUSTOMER_ID css . subs_date , csl . id AS service_id, csl . name AS device_name, csl . credit_status , csl . auto_payable , csl . counter FROM SUBSCRIPTION . CREDIT_SRV_SUBS css JOIN SUBSCRIPTION . CREDIT_SRV_LIST csl ON css . service_id = csl . id WHERE csl . credit_status = ' a ' AND csl . auto_payable IN ( 1 , 4 ) AND ROWNUM <= 20 ORDER BY css . id DESC ;  

MS Lesson ?: Exception Handling

1. Ilk once eger bizim proyektde Global Exception Handler olmadigi ucun program exception atsa Spring onu 500 Internal Server Error kimi qaytarir. Bu tipli response aliriq: {   "timestamp": "2026-05-14T17:17:04.482Z",   "status": 500,   "error": "Internal Server Error",   "path": "/find-by-id/1" } 2. Hetta bu terzde yazsaq bele bu problemi hell etmir: @Transactional public Account foo (Long id) { return accountRepository .findById(id).orElseThrow(() -> new RuntimeException( "Xeta" )); } 3. Bu problemi hell etmek ucun, sade model quraq.  package guru.springframework.cruddemo.error; import java.time.Instant; import com.fasterxml.jackson.annotation. JsonInclude ; import lombok. AllArgsConstructor ; import lombok. Builder ; import lombok. Data ; import lombok. NoArgsConstructor ; @Data @Builder @NoArgsConstructor @AllArgsConstructor @JsonInclude ( JsonInclude .Include. NON_NULL ) public class ErrorRespon...