Week 5 of the EAP takes us to the final v2021.1 release, and then we introduce the release preview. In this release, you can test WSL 2 support for Maven and Gradle projects, SSL support in HTTP clients and their user interface updates, the possibility of querying JSONPath, and more.
To try out all the updates, you can download the latest version from our website, get it from the Toolbox application, or if you are an Ubuntu user, use snapshot updates.
Here are the most important updates from Week 5.
WSL 2 Support (Part 2)
If your Maven or Gradle projects are stored in WSL 2 (\ WSL $<Linux distribution name >< project path >), you can now open them in IntelliJ IDEA and use them in a WSL 2 environment.
The framework and the Web
UX and UI updates in HTTP clients
When you run a request from an HTTP client, the IDE opens the service tools window. You can now collapse it by clicking the minus icon next to the returned hypertext Markup Language, JSON, or XML.
The vertical pane on the right has a new look. Response view Settings are now grouped under the “Eyes” icon. When you click on it, you can choose to display the line number and view the format of the response. In addition, it is easy to scroll to the top and bottom of the response by clicking on the corresponding icon.
Finally, a new icon, copy response body to Clipboard, allows you to copy the response body without all the additional information contained in the full response.
SSL support in HTTP clients
If you use SSL client authentication for the https:// protocol, you can now define SSL Settings in the HTTP client by clicking Add Environment file and selecting Private. The IDE will automatically create a file in which you can add SSL configurations.
- “Client Certificate” – Enter the path to the client certificate, which can be protected by password or key.
- Msgid “- If you set it totrue, click the ‘pen’ icon in the drain to enter the password of the client certificate.
- Msgid “Client certificate key” – Enter the path to the client certificate key.
- “Validate host Certificate” – If you want to disable server certificate validation for clients, set it tofalse. This can be useful when creating test certificates.
UX improvements to JPA
In projects that contain JPA entities, you’ll find redesigned and improved ICONS in the gutter. They are now clickable and contain a list of the most useful actions for entities and their properties.
We also improved JPA support for Kotlin and multi-module projects.
JPA console for Jakarta EE 9
In V2021.1, the JPA console that writes and runs JPQL queries is available for the Jakarta EE 9 project.
In the spring of update
We continue to improve the experience with Spring in IntelliJ IDEA. Here’s a list of the issues we’ve solved so far:
-
Added support for javax.annoation. Priority. You can now navigate to the correct auto-generated bean.
-
Improved handling of *@ conditional * comments in Spring Boot.
-
Fixed issues with custom qualifiers, auto-generating false positives, and combining annotations for @EnableJpaRepositories in Spring Data JPA. We also addressed code configuration support in Spring MVC, @endpoint Id and @ServiceActivator annotations in Spring integration.
JSONPath support
There is some good news for users of JSONPath, a query language that allows you to find different code elements in JSON documents: IntelliJ IDEA now supports JSONPath expressions with Goessner and Jayway syntax.
For JSON files, call the new action/evaluation JSONPath expression through Edit/Find to open the specialized tools window. Search fields have code AIDS that help you quickly write queries and apply a variety of complex filters. You can also choose how to display the query output: as a path to the value or the data you want.
For code that uses a JSONPath expression, insert the caret in the JSONPath string, press *Alt+Enter, and then select evaluate the JSONPath expression. * This opens a dialog box that provides the same functionality as described in the previous paragraph, plus an area where you can enter sample JSON input.
New color scheme for UML diagrams
UML diagrams now use a new color scheme to make them look cleaner and more readable.
Swagger improvement
Swagger UI now supports the specification with external file references ($ref).
the
Structure, structure
The view specification file now also has more nodes, including security, callbacks, and examples.
Selenium page object generator
We have added support for a new tool that allows you to detect DOM elements of web applications. You can through the tools | page generated selenium object to access it. Keep in mind that you must install the Selenium UI test plug-in beforehand.
Enter the web page address in the URL bar, and then click the target icon next to it. You can now select any DOM element. Click the plus icon in the left pane to add this element to the area below. Once the code exists, you can change its language or framework. Our tools support Java, Kotlin, and Groovy, as well as frameworks like Selenium, FluentLenium, Selenide, Geb, Atlas, and JDI Light.
You can customize it
The code template
By selecting each frame
The Selenium | object template page
In,
Settings/Preferences | | editor template files and code
.
Doctor Lin
Language injection improvements
You can insert code written in different languages into Kotlin code – we call it language injection. In V2021.1, we fixed some of the language injection issues that received the most votes.
First, when you inject a multi-line string using triple quotes and add a. TrimInents (), or.trimmargin () function at the end, the lines inside the triple quotes are highlighted correctly, and the mentioned functions work as expected.
Second, language injection works fine when you concatenate strings.
UML diagrams
In this EAP, you can test Kotlin code visualizations through UML class diagrams. You can from the project view, through the chart | | show chart Java classes to build the chart, or by selecting the name of the class and on the macOS press ⌥ ⇧ ⌘ U or on Windows or Linux press Ctrl + Alt + Shift + U to build a chart from the editor.
Currently, the diagram shows only inheritance and nesting, but we plan to support more detailed relational joins, such as aggregation, constructs, dependencies, and so on.
The rest of the
Run and debug Gradle, Micronaut and Quarkus projects on Docker and remote machines
We continue to improve the recently introduced runtime target functionality. You can now run and debug Quarkus projects based on Gradle, Micronaut, and Maven on Docker containers and remote computers connected via SSH.
We are working on this feature, so we would appreciate your feedback. The answers to these questions will help us make it more convenient and effective for you: Do you often need to debug applications that run remotely? Does this feature apply to your project Settings? If not, please tell us what is missing.
These are the major updates to EAP 5. See the complete list of resolved issues in the release notes. We’d appreciate your feedback in the comments below, on Twitter or via our question tracker.
Have fun!