ar
Feedback
Чашечка Java

Чашечка Java

الذهاب إلى القناة على Telegram

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

إظهار المزيد
8 545
المشتركون
-224 ساعات
-57 أيام
-2730 أيام
أرشيف المشاركات
photo content

Spring Tips: IO, IO, It's Off To Work We Go Hi, Spring fans! Welcome to another installment of Spring Tips! In this installme
Spring Tips: IO, IO, It's Off To Work We Go Hi, Spring fans! Welcome to another installment of Spring Tips! In this installment, Josh Long (@starbuxman) looks at the wide and wonderful world of IO on the JVM. Читать: https://spring.io/blog/2022/02/09/spring-tips-io-io-it-s-off-to-work-we-go

How to use useReducer in React.js and JavaScript? Example Tutorial IntroductionBefore the React hooks were introduced, it was
How to use useReducer in React.js and JavaScript? Example Tutorial IntroductionBefore the React hooks were introduced, it was not possible to use state in functional components. The React hooks transformed stateless functional components into stateful components in... Read: http://www.java67.com/2022/02/how-to-use-usereducer-in-reactjs-and.html

Codecademy теперь в телеграм! Codecademy — это крупнейшая в мире платформа для изучения программирования. Теперь у них есть русскоязычный канал. Там постят перевод на русский такой инфы, которую не найти ни на одном форуме! Подписывайтесь и прокачивайте свои скиллы: @ccademy Это #партнерский пост

Угадать число от 0 до 100 за 7 попыток — математический трюк Математический фокус, который способен удивить. Объясним алгорит
Угадать число от 0 до 100 за 7 попыток — математический трюк Математический фокус, который способен удивить. Объясним алгоритм и напишем на Java простенькую программу для решения. Читать: «Угадать число от 0 до 100 за 7 попыток — математический трюк»

JNI Часть 2: Примеры Всем привет! Меня зовут Роман Аймалетдинов, я разрабатываю клиентское приложение Ситимобил. Продолжаю св
JNI Часть 2: Примеры Всем привет! Меня зовут Роман Аймалетдинов, я разрабатываю клиентское приложение Ситимобил. Продолжаю свою серию статей по JNI, так как технология используется редко, но иногда она бывает очень полезной (или просто интересной). В этот раз я покажу примеры решений на JNI, которые совсем немного сложнее, чем hello world. И если вы не знакомы с JNI, то советую начать с первой части. Читать: https://habr.com/ru/post/650915/?utm_campaign=650915

3 ways to convert String to JSON object in Java? Examples It's very common nowadays to receive JSON String from a Java web se
3 ways to convert String to JSON object in Java? Examples It's very common nowadays to receive JSON String from a Java web service instead of XML, but unfortunately, JDK doesn't yet support conversion between JSON String to JSON object. Keeping JSON... Read: http://www.java67.com/2016/10/3-ways-to-convert-string-to-json-object-in-java.html

Мониторинг приложения Spring Boot с помощью Micrometer, Prometheus и Grafana, используя пользовательские метрики Важно отслеж
Мониторинг приложения Spring Boot с помощью Micrometer, Prometheus и Grafana, используя пользовательские метрики Важно отслеживать показатели и работоспособность приложения: это помогает нам повышать производительность, лучше им управлять и замечать неоптимизированное поведение. Мониторинг каждого сервисного модуля важен для поддержания системы, состоящей из множества микросервисов. В этой статье я покажу, как можно мониторить веб-приложение Spring Boot с помощью Micrometer, который отображает метрики нашего приложения, Prometheus, который хранит их, и Grafana для визуализации этих данных в виде графиков. Читать: https://habr.com/ru/post/650871/?utm_campaign=650871

Java on Visual Studio Code Update – February 2022 Read: https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-february-2022/

Top 10 Android Interview Questions Answers for Java Programmers Hello guys, if you are preparing for an Android app developer
Top 10 Android Interview Questions Answers for Java Programmers Hello guys, if you are preparing for an Android app developer interview and looking for some Android interview questions then you have come to the right place. Earlier, I have shared free... Read: http://www.java67.com/2012/10/top-10-android-interview-questions-and.html

18 февраля стартует курс Middle Java Developer ⠀ 3 раза в неделю на протяжении двух месяцев вас будут обучать Senior’ы и Teamlead’ы ведущих банков страны. Обучение можно совмещать с работой. На курсе будут изучать Core Java, промышленную разработку, БД, Spring, Kafka, Kubernetes и Istio. Ещё будут практические и домашние задания. После обучения будет трудоустройство в Цифровые привычки. Вы будете работать над высоконагруженными и отказоустойчивыми проектами. ⠀ Пройти вступительный тест на курс: https://cutt.ly/VUwYARE Это #партнёрский пост

g application development is supported in the Extension Pack for Java by default. You can directly develop any Swing application without additional setup. To find more Swing examples, you can visit the official Oracle documentation. Documentation for Java GUI application development on Visual Studio Code Apart from these feature updates, we have also added a dedicated article for Java GUI application development on official Visual Studio Code documentation. We hope this article can help students and educators to easily get started on GUI development and set up the project. New Gradle project creation workflow In addition to unit testing and GUI applications, we are also seeing that Gradle is becoming more popular among students as well as professional developers. Therefore, we have added support for Gradle project creation in our Java project creation workflow. This feature will help you to bootstrap a simple Gradle project with just a few steps. To use this feature, simply bring up the command palette (Ctrl+Shift+P), then run the “Java: Create Java Project“, and select “Gradle” from the list. Currently this workflow supports both Groovy and Kotlin as your Domain Specific Language (DSL). You can also click the “Create Java Project” button to use this feature. Note that you will need to install the Gradle for Java extension to use this feature. To use all the new features mentioned above, please download the latest version of Extension Pack for Java. Feedback and suggestions There will be lots of exciting updates for Java on Visual Studio Code in 2022, and as always, your feedback and suggestions are very important to us and will help shape our product in future. There are several ways to give us feedback * Leave your comment on this blog post * Open an issue on our GitHub Issues page * Send an email to: vscjfeedback@microsoft.com Resources Here is a list of links that are helpful to learn Java on Visual Studio Code. * Learn more about Java on Visual Studio Code. Read: Java on Visual Studio Code Update – February 2022.

Java on Visual Studio Code Update – February 2022 Hi everyone, welcome to the February update of Visual Studio Code Java and this time we have a special edition for education! Many schools are back in session after the winter holidays, and in order to provide student and educators a better experience using Java on Visual Studio Code this semester, we have been making a series of improvements regarding unit testing, GUI application development and Gradle project creation. Let us take a look at these new features! Easily enabling unit testing in basic Java projects We have received a lot of feedback from students that when working on a simple Java project, they always have to manually add the testing framework JARs (such as JUnit) to the project, and our Java extensions does not offer any functionality to easily help them with this common task. To address this, we have added a new feature in our extensions so that if your project (assuming it is a basic project without build tools) does not contain any testing related libraries, you can easily add the JAR and enable unit testing in your project. To use this feature, simply go to the “Testing” view and select “Enable Java Tests” (shown in the picture below). This button will do two things for you: * Download the testing related JARs based on your choice (JUnit, JUnit Jupiter, TestNG) * Add the downloaded JAR to the libraries folder Here is a demo of the feature: After this step is done, simply create a Java file and start writing unit tests! You can get this feature in the latest update of Extension Pack for Java. Better support for GUI application development (JavaFX, Swing and AWT) GUI-based Java applications are quite common in school projects. The most commonly used GUI frameworks are JavaFX, Swing and AWT. In this section, we are going to highlight some optimizations we have made to support these frameworks better. JavaFX We have added built-in support to create a JavaFX based project with Maven archetype in our Java extensions. To use this new feature, simply bring up the Command Palette (Ctrl+Shift+P) and run command “Java: Create Java Project“. From the drop-down list, select “JavaFX“. After selecting this item, a JavaFX project based on Maven will be created for you. To run the JavaFX application, you can open the Maven view, expand hellofx> Plugins> javafxand run the Maven goal: javafx:run. More Visual Studio Code sample projects for JavaFX We also realize students might be working on JavaFX projects using other build tools (Gradle) or no build tools at all, therefore we have provided complete JavaFX samples for all those different cases. Please find the latest JavaFX samples for Visual Studio Code in this sample repository. Abstract Window Toolkit (AWT) AWT is another framework that is popular among Java GUI application development. However, the types from the Abstract Window Toolkit (AWT) are hidden by default due to some constraints, therefore you may notice that code completion does not prompt AWT classes when you are working on an AWT application. To enable the code completion for AWT, you can open the Command Palette (Ctrl+Shift+P) and then select the command Java: Help Center. Go to the Student section and select Enable AWT Development. Please note that this action will update a setting at the workspace level, so please make sure a workspace is opened in Visual Studio Code. Here is a demo of this feature: After the setting is enabled, code completion will work on AWT applications! You can use this basic sample code to test your AWT on Visual Studio Code. Swing Swin[...]

photo content

Log4Shell Defenses: Java Agents in Conversation with Contrast Security’s Arshan Dabirsianghi Due to the critical nature of th
Log4Shell Defenses: Java Agents in Conversation with Contrast Security’s Arshan Dabirsianghi Due to the critical nature of the systems and to the severe and critical nature of the log4shell vulnerability, an alternative approach to fixing it was required. Java Agents played a crucial role in this defense strategy. InfoQ reached out to Arshan Dabirsianghi, Chief Scientist and founder of Contrast Security for a better understanding of their approach. By Olimpiu Pop Read: https://www.infoq.com/news/2022/02/log4shell-contrast-security/

[Solved] java.lang.ClassNotFoundException: org.Springframework.Web.Context.ContextLoaderListener in Java and Spring Problem :
[Solved] java.lang.ClassNotFoundException: org.Springframework.Web.Context.ContextLoaderListener in Java and Spring Problem : You are getting java.lang.ClassNotFoundException : org.Springframework.Web. Context.ContextLoaderListener in your Spring-based Java Web application. Cause: This error comes when you are... Read: http://www.java67.com/2015/06/org.Springframework.Web.Context.ContextLoaderListener.html

3 ways to Count words in Java String - Google Interview Questions with Solution Today, I am going to share with you Java inte
3 ways to Count words in Java String - Google Interview Questions with Solution Today, I am going to share with you Java interview questions from Google, which were asked to one of my readers during the telephonic round. How do you count the number of words in a given String in... Read: http://www.java67.com/2016/09/3-ways-to-count-words-in-java-string.html

Изучаете фреймворк Spring? 15 февраля 2022 года в 20:00 пройдет открытый урок «Как пользоваться JPA (hibernate) в Spring-приложении». Вместе с преподавателем Юрием Дворжецким, ведущим full-stack разработчиком, мы рассмотрим, как правильно писать JPA Entity, как ими пользоваться на низком уровне и некоторые аналогичные фишки Spring Data JPA. Demo-занятие входит в программу онлайн-курса «Spring Framework Developer» и позволяет протестировать обучение на курсе. Пройдите вступительный тест, чтобы зарегистрироваться на мероприятие: https://otus.pw/Khoh/ #ad

Difference between save(), saveOrUpdate() and persist() in Hibernate Session The Session interface in Hibernate provides a co
Difference between save(), saveOrUpdate() and persist() in Hibernate Session The Session interface in Hibernate provides a couple of methods to move an object from a new or transient state to a persistent state like save(), saveOrUpdate(), and persist() is used to store an... Read: http://www.java67.com/2016/01/difference-between-save-saveorupdate-and-persist-in-Hibernate.html

Переход с Java на Kotlin при создании мобильного приложения Почему нужен переход с Java на Kotlin при создании мобильного при
Переход с Java на Kotlin при создании мобильного приложения Почему нужен переход с Java на Kotlin при создании мобильного приложения. Какие-то детали будут полезны тем, кто занимается миграцией бэкенда. Читать: «Переход с Java на Kotlin при создании мобильного приложения»