Чашечка Java
前往频道在 Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
显示更多8 283
订阅者
-124 小时
-57 天
-7130 天
帖子存档
8 284
Telegram клиент. TDLib и Spring Boot
Всем привет! В данной статье я хотел бы рассмотреть процесс создания Telegram клиента с помощью кроссплатформенной библиотеки TDLib, Java и Spring Boot.
Читать: https://habr.com/ru/articles/738022/?utm_campaign=738022
8 284
How to find Kth Smallest Element in a Binary Search Tree? [Solved]
Hello guys, I have been sharing binary search tree-based coding interview questions for quite some time. In the last article, we looked at how to find the maximum sum level in a given binary tree, and in this article, we will find the kth smallest number in a given binary tree like the 5th smallest or 3rd smallest number. Before we find the kth smallest in a Binary search tree, We need to understand
the binary search tree. A Binary tree is a data structure in which each node
can have at most two children. That is, each node in the binary tree will have
data, left child and right child. The first node of the tree is called the
Root.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/01/how-to-find-kth-smallest-element-in.html
8 284
How to find the maximum sum level in binary tree in Java? Example Tutorial
Hello guys, if you are preparing for a coding interview and wondering how to find the maximum sum level in a given binary tree in Java then you have come to the right place. I have been sharing binary tree coding problems for the last few months and in the past, we have seen questions like finding kth smallest elementand finding the lowest common ancestor of a binary tree in Java in this article, you will learn how to find the maximum sum level in a given binary tree of integers or numbers. But, before finding the maximum sum level of a binary tree in java, we need to have a good understanding of a binary search tree. Both theoretical knowledge and how to implement binary search tree in Java is important to solve tree-based coding problems.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/01/how-to-find-maximum-sum-level-in-given-binary-tree-java.html
8 284
Как сконфигурировать Spring web client под SSL
Как я настроил подключение Spring Web Client к другому сервису с использованием SSL: пример конфигурирования, использования и тестирования.
Читать: https://habr.com/ru/articles/737906/?utm_campaign=737906
8 284
Как мы выбирали процессный движок: месяц мучений ради идеала
Хабр, привет! Меня зовут Артем Терзьян, я Java-разработчик в IBS. Именно на мои плечи пала нелегкая задача выбора идеального BPMN-движка для реализации с его помощью бизнес-процессов в рамках нашей собственной платформы. Надеюсь, приведенный обзор поможет кому-то сэкономить время при столкновении с аналогичной задачей.
Подробнее о моих экспериментах
Читать: https://habr.com/ru/companies/ibs/articles/737816/?utm_campaign=737816
8 284
Difference between application.properties vs Application.json vs Application.yml in Spring Boot
Hello guys, if you have worked in any Spring Boot application then you may have noticed that there are multiple ways to declare configuration for Spring Boot application. I am sure you must have noticed application.propties, application.json, and application.ymlwhile working in proprietary or open source Spring Boot application. When I first started, it was application.propties and it was quite familiar because I have used properties file in past for specify configuration of Java application but when I first see applcation.json and application.yml I was bit confused like what they are and does they really work? In the end I found out that they are just different ways to specify configuration for any Spring Boot application.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/02/difference-between-application.html
8 284
Difference between @RequestParam vs @RequestBody in Spring MVC? (with Example)
Hello everyone, in this article, we are going to look at an interesting topic from the Java Spring framework and the topic is, to find the difference between @RequestBody and @RequestParam. If you don't know this is one of the frequently asked Spring MVC interview question and also two of the most used annotation when creating backend of a Java web application in Spring Framework. Earlier, I have explained difference between @RequestBody and @ResponseBody in Spring MVC and REST APIs, and in this article, I am going to tell you the difference between @RequestBody and @RequestParam annotation in Spring Framework. It is worth noting that these two annotations are frequently used in Spring Boot REST API.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/02/requestparam-vs-requestbody-in-spring.html
8 284
Difference between Spring Boot vs Spring Cloud in Java
Hello guys, if you are wondering, what is difference between Spring Boot and Spring Cloud then you re not alone. Many Java developer are not familiar with various spring boot projects like Spring Security, Spring Data JPA, Spring Batch, Spring Boot, Spring Cloud etc and this lack of knowledge prevent them from taking full advantage of Spring Framework. In last article, I have explained difference between Spring framework and Spring Boot and in this article we are going to discuss the difference between Spring Boot and Spring Cloud. Before we dive into the difference between the two terms. Let us take a look at different terms like Spring, Spring Boot, and Spring Cloud.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/02/difference-spring-boot-vs-spring-cloud.html
8 284
Как работают сервисы карт и маршрутизации
В период моей жизни, когда я работал в Санкт-Петербурге, пришла мне интереснейшая задача — создать и интегрировать в один проект функционал карт. По ограничениям бизнес требований, карта должна работать в условиях отсутствия интернета, при этом удовлетворять требования визуального отображения и построения маршрутов. Значит не было возможности использовать готовый API Яндекса или Google, так что пришлось реализовывать механизмы самому.
В этой статье я не буду давать какой то инструкции по реализации такого проекта, а скорее в общем опишу как работаю карты, которым мы постоянно пользуемся.
Как работают сервисы карт и маршрутизации?
Читать: https://habr.com/ru/articles/737592/?utm_campaign=737592
8 284
От «Hello World» до получения патента и включения программы в реестр российского ПО
В 2017 году я начал изучать Java. И, чтобы как-то визуализировать результат трудов, я решил сделать десктопное приложение.
Поразмыслив, чего мне не хватает, я захотел создать свой новостной агрегатор. Конечно, такие программы на тот момент уже были: и десктопные, и веб, но они мне показались сложными, а хотелось получать нужные новости по одному клику, да и лучшего варианта для изучения я не придумал.
Под катом — история создания приложения, туториалы по получению на него патента и включению его в реестр российского ПО, а также моя собственная коллекция граблей, собранная на этом пути.
Читать: https://habr.com/ru/companies/sportmaster_lab/articles/723068/?utm_campaign=723068
8 284
Строим свой SSO сервер используя Spring Authorization Server
На днях я решил сделать под все свои pet-проекты собственный SSO сервис, дабы не заморачиваться каждый раз с авторизацией и аутентификацией. Возиться с этим особо долго мне не хотелось. Все таки это для pet-проектов. Поэтому выбор пал на Spring Security. Мне давно уже было интересно посмотреть в действии как на Spring Boot 3, так и новый Spring Authorization Server версии 1.x.x. В данной статье речь пойдёт о проблемах и их решениях при построении собственного SSO. А также я поставил себе ряд интересных требований, с которыми я постараюсь справиться и рассказать о своём опыте.
Читать: https://habr.com/ru/articles/737548/?utm_campaign=737548
8 284
Python или Java: что выбрать новичку?
Кто-то выберет Python, потому что в нем начало и конец класса или функции обозначается простым отступом (табуляцией), а в Java для разделения блоков кода применяют надоевшие круглые скобки. А кому-то друзья-инсайдеры в программировании посоветуют учить Java. Среди программистов популярно мнение, что новичку лучше сначала освоить компилируемый язык. Скорее всего, категорический ответ на вопрос: «что лучше java или python» дать нельзя. У каждого свои цели и своя ситуация. Поговорим об особенностях двух языков программирования, которые делают их предпочтительными в тех или иных обстоятельствах.
Читать: https://habr.com/ru/articles/737518/?utm_campaign=737518
8 284
Как не превратить корпоративный GitHub в склад старого опенсорса
Всем привет, меня зовут Таня Хомякова, я Java-разработчик в Lamoda Tech. Моя команда отвечает за автоматизацию и поддержку процессов на двух складах Lamoda. Обычно наш код не покидает пределов внутренних репозиториев, так как это исключительно внутренняя разработка, но бывают и исключения.
В статье я расскажу, зачем мы выкладываем код в открытый доступ и как у нас выстроена работа с опенсорс-проектами. Статья будет полезна всем, кто хочет заниматься опенсорсом в компании и пока не знает, с чего начать и как организовать процесс.
Читать: https://habr.com/ru/companies/lamoda/articles/734446/?utm_campaign=734446
8 284
Breaking Down Barriers: Introducing JDK 21’s Approach to Beginner-Friendly Java Programming
JEP 445, Unnamed Classes and Instance Main Methods (Preview), has been promoted from its Proposed to Target to Targeted status. This feature of JEP, formerly entitled Implicit Classes and Enhanced Main Methods (Preview), proposes to "evolve the Java language so that students can write their first programs without needing to understand language features designed for large programs.”
By A N M Bazlur Rahman
Read: https://www.infoq.com/news/2023/05/beginner-friendly-java/
8 284
Что будет, если вы захотите, скажем, пристроить кота на Авито?
Система изучит объявление, проверит дубли среди 150 000 000 других объявлений. Затем кот пройдёт модерацию. Попадёт в базу данных, а потом в систему рекомендаций…
Впрочем, лучше один раз увидеть. А показывают Авито изнутри здесь: https://tprg.ru/SlaM
Реклама ООО «Авито Тех» LjN8Jutzi
8 284
10 Examples of RestTemplate in Spring Framework
Hello guys, if you are wondering how to send GET and POST request to your API or Web Service from a Java based Spring Framework then you would be glad to know that You can use use RestTemplate class from Spring Framework. It's a fully functional HTTP client which is really really useful in this age of API. I have used RestTemplate to consume JSON from API before as well as sending different kind of request like POST, PUT, DELETE and PATCH to any REST API. For example, in this article, I shared how to send POST request using RestTemplate and how to set header on HTTP request using RestTemplate. Yes, RestTemplate also allow you to send headers like Authorization on Http Request.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/10-examples-of-resttemplate-in-spring.html
8 284
How to Handle REST exception in Spring Boot Application? Example Tutorial
Hello everyone, in this article we are going to take a look at how to handle REST API exceptions in Spring Boot.It is crucial to handle errors correctly in APIs by displaying meaningful messages as it helps API clients to address problems easily. What happens if we don’t handle the errors manually? By default, the spring application throws a stack trace, which is difficult to understand. Stack traces are mainly for developers hence it is useless for API clients. That's why its very important to use proper HTTP code and error messages to convey errors and exception to client and also logging so that support team can better handle them. Ideally you should tell what went wrong and how to fix it? For example, if the error is due to duplicate data then clearly say, already existed, try with a new one. Similarly, if authentication fail then clearly say authentication failed instead of throwing some other exception.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/04/handling-rest-exception-in-spring-boot.html
8 284
Build a Java application to talk to ChatGPT
Read: https://www.infoworld.com/article/3697151/build-a-java-application-to-talk-to-chatgpt.html#tk.rss_java
8 284
Article: Easy Implementation of GDPR with Aspect Oriented Programming
GDPR compliance should be a default feature in every application that handles PII (Personally Identifiable Information). Most organizations have an impression that GDPR is a luxury feature that needs special tools to implement. But, we can see that the frameworks and design patterns we already use in our everyday development can very well be used to implement the GDPR rules.
By Harish Kumar
Read: https://www.infoq.com/articles/gdpr-with-spring-and-aop/
