es
Feedback
Чашечка Java

Чашечка Java

Ir al canal en Telegram

Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels

Mostrar más
8 551
Suscriptores
-124 horas
-207 días
-2430 días
Archivo de publicaciones
How to Fix Reference Error: $ is not defined in jQuery and JavaScript [Solved] Hello JavaScript developer, if you are wonderi
How to Fix Reference Error: $ is not defined in jQuery and JavaScript [Solved] Hello JavaScript developer, if you are wondering how to fix the Reference Error $ is not defined while using jQuerythen you have come to the right place. "Reference Error: $ is not defined" is one of the common JavaScript errors which come when you try to use $, which is a shortcut of jQuery() function before you load the jQuery library like calling $(document).ready() function. "ReferenceError: XXX is not defined"is a standard JavaScript error, which comes when you try to access a variable or function before declaring it. Since jQuery is also a JavaScript library, you must first include the declaration of the jQuery function or $() before you use it. Java Interview questions and tutorials Read: http://www.java67.com/2020/07/fixing-referenceerror-is-not-defined-in.html

How to fix java.net.SocketException: Broken pipe, Connection reset, and Too many open files in Java? In this blog, I plan to
How to fix java.net.SocketException: Broken pipe, Connection reset, and Too many open files in Java? In this blog, I plan to talk about some common exceptions and errors that arise while using sockets. Quite often, these socket issues arise out of application bugs, system settings, or system load. It might be an unnecessary delay to go to product teams, only to discover that the issue can be resolved by tuning/configuring your local settings. Understanding these messages will not only help resolve the issues but also make a conscious effort in avoiding these scenarios while developing applications. Java Interview questions and tutorials Read: http://www.java67.com/2019/02/7-common-socket-errors-and-exception-in-java.html

How to fix ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException in Java? Though both StringIndexOutOfBoundsExce
How to fix ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException in Java? Though both StringIndexOutOfBoundsException and ArrayIndexOutOfBoundsException are children of IndexOfBoundsExceptionclass, the former is thrown by methods of String and related class like StringBuffer and StringBuilder to indicate that an index is either negative or greater than the size of the String, or more generally not valid. For example, charAt() method throws StringIndexOutOfBoundsException when an index is equal to the length of String? why? because String is backed by character array where index starts at 0and ends at length -1. Java Interview questions and tutorials Read: http://www.java67.com/2016/04/difference-between-stringindexoutofboundsException-vs-ArrayIndexOutOfBoundsException-Java.html

How to Fix Spring Boot cannot access REST Controller on localhost (404) Error in Java Hello guys, if you are getting "cannot
How to Fix Spring Boot cannot access REST Controller on localhost (404) Error in Java Hello guys, if you are getting "cannot access REST Controller on localhost (404)" error in your Spring Boot application and wondering how to solve it then you have come to the right place. Earlier, I have shared how to solved 5 common Spring Framework errors and exception and in this article, we will take a look at the spring boot can’t access rest controller on localhost (404) issue. A 404 Not Found Error for your REST Controllers is a relatively typical problem that many developers encounter while working with Spring Boot applications. In this Spring boot tutorial, let's explore why such an error took place, and later on, we will learn how to fix this issue. Java Interview questions and tutorials Read: http://www.java67.com/2023/02/how-to-fix-spring-boot-cannot-access.html

Настойка Hibernate Envers Настройка Аудирования и Журналирования в java проекте. Hibernate Envers не так прост как кажется, но мы всё настроим и кастомизируем. Читать: https://habr.com/ru/post/715918/?utm_campaign=715918

Архитектурные шаблоны взаимодействия с базами данных В первой статье мы рассмотрели шаблоны проектирования, применимые в программировании приложений. Однако сейчас сложно представить серьезное бизнес-приложение без базы данных. Большие объемы данных требуют хранения и обработки. И то насколько оптимально построена связь между уровнем прикладного кода и уровнем БД во многом зависит быстродействие системы в целом. Поэтому важно правильно построить взаимодействие с СУБД. В этой статье мы рассмотрим шаблоны взаимодействия с базами данных. Правильно выбранный шаблон взаимодействия позволит избежать многих проблем при разработке и получить качественное приложение. Читать: https://habr.com/ru/post/715702/?utm_campaign=715702

Announcing availability of the AWS CRT HTTP Client in the AWS SDK for Java 2.x Read: https://aws.amazon.com/blogs/developer/a
Announcing availability of the AWS CRT HTTP Client in the AWS SDK for Java 2.x Read: https://aws.amazon.com/blogs/developer/announcing-availability-of-the-aws-crt-http-client-in-the-aws-sdk-for-java-2-x/

«Разделяй и властвуй» для мира в OpenStreetMap Продолжу рассказ "Как поместить весь мир в обычный ноутбук: PostgreSQL и OpenStreetMap" секретами о геоданных OpenStreetMap, на которых множество компаний построили бизнес но не все делятся подробностями... Что ж, сегодня приоткроем завесу! База данных в PosgreSQL после загрузки из дампа занимает больше 587 GB. Это уже по меркам СУБД большая база и одна огромная таблица на каждый тип объектов не сработает. Для управляемости такие данные надо секционировать, хорошо что PostgreSQL поддерживает декларативное секционирование данных. Осталось лишь придумать как разделить географические данные. После поисков и сравнений мне на помощь пришла иерархическая гексагональная геопространственная система индексирования H3 Все это было реализовано в моем проекте openstreetmap_h3. Читать: https://habr.com/ru/post/715622/?utm_campaign=715622

25 Examples of ConcurrentHashMap in Java The java.util.ConcurrentHashMap is one of the most important classes of JDK. It was
25 Examples of ConcurrentHashMap in Java The java.util.ConcurrentHashMap is one of the most important classes of JDK. It was introduced in JDK 1.5 along with other concurrent collection classes likeCopyOnWriteArrayList and BlockingQueue. Ever since then, it has been a workhorse in concurrent Java applications. It won't be an exaggeration If I say there is hardly any concurrent Java application that has not used ConcurrentHashMap yet. The class was another implementation of java.util.Map and a popular hash table data structure with concurrency inbuilt. This means you can also pass a ConcurrentHashMap to a method that is expecting a java.util.Map object. It was made scalable by dividing the whole map into a different segment, known as concurrency level, and then allowing threads to modify segments concurrently. Java Interview questions and tutorials Read: http://www.java67.com/2020/02/25-examples-of-concurrenthashmap-in-java.html

2 Ways to sort a Map in Java by Keys? TreeMap and HashMap Example So you have a Map in your Java program and you want to proc
2 Ways to sort a Map in Java by Keys? TreeMap and HashMap Example So you have a Map in your Java program and you want to process its data in sorted order. Since Map doesn't guarantee any order for its keys and values, you always end up with unsorted keys and Map. If you really need a sorted Map then think about using the TreeMap, which keeps all keys in sorted order. This could be either natural order of keys (defined by Comparable) or custom order (defined by Comparator), which you can provide while creating an instance of TreeMap. If you don't have your data in a sorted Map then the only option that remain for you is to get the keys and values, sort them and then process your Map in that order. Java Interview questions and tutorials Read: http://www.java67.com/2014/04/2-ways-to-sort-hashmap-in-java-example.html

How to Remove Entry (key/value) from HashMap in Java while Iterating? Example Tutorial Hello guys, Can you remove a key while
How to Remove Entry (key/value) from HashMap in Java while Iterating? Example Tutorial Hello guys, Can you remove a key while iterating over HashMap in Java? This is one of the interesting interview questions as well as a common problem Java developers face while writing code using HashMap. Some programmers will say No, you cannot remove elements from HashMap while iterating over it. This will fail fast and throw concurrent modification exceptions. They are right but not completely. It's true that the iterator of HashMap is a fail-fast iterator but you can still remove elements from HashMap while iterating by using Iterator's remove() method. Java Interview questions and tutorials Read: http://www.java67.com/2017/06/how-to-remove-entry-keyvalue-from-HashMap-in-java.html

Интеграция Primefaces в приложение на Spring Boot. Часть 7 — Компоненты для сохранения и редактирования данных Описывается пример интеграции библиотеки компонентов пользовательского интерфейса Primefaces, построенной на основе фреймворка JavaServer Faces (JSF), в MVC приложение на Spring Boot. Первая часть | Вторая часть | Третья часть Четвертая часть | Пятая часть | Шестая часть Читать: https://habr.com/ru/post/715516/?utm_campaign=715516

Как устроена аутентификация в Micronaut: гайд по настройке Всем привет! Меня зовут Иван Зыков, я старший Java разработчик в компании X5 Tech. За моими плечами больше 5 лет опыта разработки. Хочу познакомить вас с модулем аутентификации Micronaut и заодно продемонстрировать, как настроить OAuth2.0 у нескольких провайдеров. Читать: https://habr.com/ru/post/715634/?utm_campaign=715634

Хотите бесплатно получить доступ сразу к нескольким платным курсам? GeekBrains отдаёт подборку курсов, которая обычно стоит 25 000 рублей, которые помогут: — разобраться в тонкостях карьерных вопросов, — изучить основы программирования, — узнать честный опыт айтишников из самых разных сфер, — сделать правильный осознанный выбор. Не упустите момент и заберите подборку прямо сейчас: https://tprg.ru/5PgH Бонусом вы получите бесплатный доступ к внутренним мероприятиям GeekBrains. Реклама ООО «Гикбреинс»

Как адаптировать Android-приложение под Huawei Всем привет! Меня зовут Миша Вассер, я Head of Android в AGIMA. Мы занимаемся разработкой Digital-продуктов для больших и маленьких компаний, в том числе пилим мобильные приложения. Не так давно — по сравнению со всей историей Android — Huawei выкатил собственную операционную систему и сказал: «Ребята, вот вам новая система, кайфуйте». Многие отнеслись к новой ОС скептически. Остальным пришлось адаптировать под нее свои Android-приложения. Мы оказались во второй группе. К нам время от времени обращаются с просьбой помочь с адаптацией под Huawei. И мы неплохо в этом вопросе прокачались. Поэтому сейчас расскажу, что надо сделать, чтобы стало хорошо. А покажу всё это на примере крупного ретейлера, с которым мы работаем. Читать: https://habr.com/ru/post/715206/?utm_campaign=715206

Практический кейс: как быстро развернуть Testcontainer PostgreSQL для Spring Boot API Тема с testcontainer-ами относительно не новая, первые статьи на англоязычных ресурсах встречаются с 2016 года, но не смотря на это, до сих пор на просторах веба крайне мало гайдов для их развертывания из коробки. В большинстве своем это туториалы, где собрана солянка из зависимостей и аннотаций, которые мало того, что не нужны, но еще и могут запутать разработчика, решившего  с ними познакомиться. В этой статье я опишу свой практический кейс по развертыванию тестовых контейнеров для базы данных PostgreSQL. Основная задача их использования - быстрый deploy нужного сервиса в контейнере за небольшое время. В дополнении для наглядности запустим туда FlyWay миграции. Читать: https://habr.com/ru/post/715496/?utm_campaign=715496

Software Security Report Finds JavaScript Applications Have Fewer Flaws Than Java and .NET Veracode's State of Software Secur
Software Security Report Finds JavaScript Applications Have Fewer Flaws Than Java and .NET Veracode's State of Software Security report for 2023 found that there is a 27% chance within a given month that security flaws will be introduced into an application. The report also found that JavaScript applications on average have fewer flaws and faster flaw resolution than Java and .NET applications. By Matt Campbell Read: https://www.infoq.com/news/2023/02/veracode-software-security/

Microsoft OpenJDK Introduces Experimental Feature for Improving Escape Analysis Microsoft announced an experimental feature,
Microsoft OpenJDK Introduces Experimental Feature for Improving Escape Analysis Microsoft announced an experimental feature, still under development, which improves the performance of escape analysis by increasing the opportunities for scalar replacement. Currently the feature is only available for Microsoft Build of OpenJDK, but might become part of OpenJDK in the future. By Johan Janssen Read: https://www.infoq.com/news/2023/02/microsoft-openjdk-feature/

How does HTTP Request is handled in Spring MVC? DispatcherServlet Example Tutorial One of the common interview questions in S
How does HTTP Request is handled in Spring MVC? DispatcherServlet Example Tutorial One of the common interview questions in Spring MVC is, how does the DispatcherServlet process a request in Spring MVC?or What is the role of DispatcherServlet in the Spring MVC framework?This is an excellent question for any Java or Spring web developer because it exposed the candidate's knowledge about Spring MVC architectureand how its main components like Model, View, and Controller.   The answers to this question show how much you know about the Spring MVC framework and its working. Java Interview questions and tutorials Read: http://www.java67.com/2019/08/how-dispatcherservlet-process-request-in-spring-mvc-application.html

Интеграция Primefaces в приложение на Spring Boot. Часть 6 — Комбинирование компонентов для вывода сложных данных Описывается пример интеграции библиотеки компонентов пользовательского интерфейса Primefaces, построенной на основе фреймворка JavaServer Faces (JSF), в MVC приложение на Spring Boot. Первая часть | Вторая часть | Третья часть Четвертая часть | Пятая часть Читать: https://habr.com/ru/post/715048/?utm_campaign=715048