Чашечка Java
前往频道在 Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
显示更多8 295
订阅者
+324 小时
+127 天
-4930 天
帖子存档
8 290
18 февраля стартует курс Middle Java Developer
⠀
3 раза в неделю на протяжении двух месяцев вас будут обучать Senior’ы и Teamlead’ы ведущих банков страны. Обучение можно совмещать с работой.
На курсе будут изучать Core Java, промышленную разработку, БД, Spring, Kafka, Kubernetes и Istio. Ещё будут практические и домашние задания.
После обучения будет трудоустройство в Цифровые привычки. Вы будете работать над высоконагруженными и отказоустойчивыми проектами.
⠀
Пройти вступительный тест на курс:
https://cutt.ly/VUwYARE
Это #партнёрский пост
10 2月 2022, 08:30
8 290
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.
10 2月 2022, 08:25
10 2月 2022, ~08:44
8 290
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[...]10 2月 2022, 08:25
10 2月 2022, ~08:44
8 290
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/
10 2月 2022, 02:44
8 290
[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
09 2月 2022, 23:25
8 290
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
09 2月 2022, 23:25
8 290
Изучаете фреймворк Spring?
15 февраля 2022 года в 20:00 пройдет открытый урок «Как пользоваться JPA (hibernate) в Spring-приложении». Вместе с преподавателем Юрием Дворжецким, ведущим full-stack разработчиком, мы рассмотрим, как правильно писать JPA Entity, как ими пользоваться на низком уровне и некоторые аналогичные фишки Spring Data JPA.
Demo-занятие входит в программу онлайн-курса «Spring Framework Developer» и позволяет протестировать обучение на курсе.
Пройдите вступительный тест, чтобы зарегистрироваться на мероприятие: https://otus.pw/Khoh/
#ad
09 2月 2022, 09:01
14 2月 2024, ~08:12
8 290
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
09 2月 2022, 08:12
8 290
Переход с Java на Kotlin при создании мобильного приложения
Почему нужен переход с Java на Kotlin при создании мобильного приложения. Какие-то детали будут полезны тем, кто занимается миграцией бэкенда.
Читать: «Переход с Java на Kotlin при создании мобильного приложения»
09 2月 2022, 04:42
8 290
Failsafe 3.2 Released with New Resilience Policies
Failsafe, a lightweight fault tolerance library for Java 8+, launched the major 3.0 release in November 2021.
More recently, Failsafe announced the availability of version 3.2 which introduced new Rate Limiter and Bulkhead policies.
Failsafe also integrates with asynchronous code like Java’s CompletableFuture.
By Andrea Messetti
Read: https://www.infoq.com/news/2022/02/failsafe-resilience-3/
09 2月 2022, 01:43
8 290
How to Remove all adjacent duplicates characters from String in java? Example Tutorial
Hello guys, if you are wondering how to remove adjacent repeated characters or duplicates from a given String in Java then you have come to the right place. In the last article, we have seen how to...
Read: http://www.java67.com/2022/02/how-to-remove-all-adjacent-duplicates-from-string-.html
08 2月 2022, 23:31
8 290
Azul Launches Java Cloud Compiler
Azul has launched a cloud-native compiler, improving the time to peak performance for Java applications. By delegating JIT to an external system, applications can reach higher throughput, faster than when JIT is performed locally.
By Erik Costlow
Read: https://www.infoq.com/news/2022/02/azul-cloud-compiler/
08 2月 2022, 08:42
8 290
JNI Часть 1: Введение
Всем привет! Меня зовут Роман Аймалетдинов и я разрабатываю клиентское приложение Ситимобил. Решил написать небольшую серию из трех статей по JNI, так как технология используется редко, но иногда она бывает очень полезной. Несмотря на то, что я разрабатываю классические приложения под Android, иногда хочется посмотреть технологии рядом со своей специализацией.
Читать: https://habr.com/ru/post/650403/?utm_campaign=650403
08 2月 2022, 08:01
8 290
17 февраля OTUS приглашает вас на Join OTUS Conf — онлайн-конференцию для IT-специалистов, которые уже преподают или только присматриваются к преподаванию
На ней будет несколько спикеров из ВТБ, YouDo, Yum! и Brands, которые поделятся своим опытом и фишками. Вы же узнаете:
— Почему OTUS — это Uber для тех, кто хочет заниматься преподаванием;
— Чем live занятия лучше, чем записанные видео;
— Как организован онбординг OTUS и какую атмосферу ребята создали для IT-экспертов.
Участие бесплатное: https://otus.pw/LaQsG/
#ивент
08 2月 2022, 07:30
8 290
How to test REST API from Command Line using cURL command in Linux? Example Tutorial
The curl or cURL command of Linux is a compelling and versatile command which allows you to send sophisticated HTTP requests right from your Linux command line window. You can use the cURL command to...
Read: http://www.java67.com/2017/10/how-to-test-restful-web-services-using.html
08 2月 2022, 06:51
8 290
Уж+ёж: реактивные компоненты в сервлетном окружении (3/3)
В предыдущей заметке было подробно рассмотрено одно из решений для обеспечения повсеместной доступности текущего обрабатываемого HTTP-запроса. В отличие от неё, нынешняя заметка посвящена не одному большому пункту, а двум компактным: поддержке AOP-аспектов и работе OpenFeign-клиентов в «гибридных» приложениях.
Читать: https://habr.com/ru/post/650165/?utm_campaign=650165
07 2月 2022, 23:45
8 290
11 JDBC Interview questions answers in Java - 2 to 4 years experienced programmer
Hello guys, if you are preparing for Java developer interviews then you may know that the JDBC Interview question forms one of the important sections in Java Interviews. Similar to multithreading,...
Read: http://www.java67.com/2012/12/jdbc-interview-questions-answers-in-Java-2-4-years-experienced.html
07 2月 2022, 22:43
8 290
Java 18 一 что нового добавили и почему вам это пригодится
Выход Java 18 назначен на 22 марта 2022 года, ждать осталось недолго. Релиз уже несколько дней находится во второй фазе стабилизации, а значит, список фич уже финализирован, а значит настало время обратить на них наше внимание.
Сейчас у нас есть возможность попробовать новый функционал и понять, насколько он полезен. А пробовать есть что, несмотря на то, что это не LTS релиз!
В этой статье мы рассмотрим новые JEP и объясним, что они делают, и для чего они нужны.
Хочу попробовать!
Читать: https://habr.com/ru/post/650289/?utm_campaign=650289
07 2月 2022, 16:20
8 290
Куда и как расти разработчику, админу или DevOps с опытом?
Освойте или улучшите свои навыки работы с БД — начните на бесплатных демо-занятиях онлайн-курсов «MongoDB» и «PostgreSQL для администраторов баз данных и разработчиков»:
— «Шардированный реплицированный кластер MongoDB»: https://otus.pw/a1WS/
— «DML: вставка, обновление, удаление, выборка данных»: https://otus.pw/CfTp/
#ad
07 2月 2022, 08:01
14 2月 2024, ~08:12
