Location>code7788 >text

IntelliJ IDEA 2024.2 released: Spring Data JPA on-the-fly queries, auto-complete cron expressions

Popularity:836 ℃/2024-08-09 11:07:16

This morning I saw, IntelliJ IDEA 2024.2 release email alerts, took a look at this version of the updated new features really too much for me! Maybe these abilities to pay attention to DD partners are also helpful, so get a blog to introduce and recommend it. Here's a look at a few of the powerful new features introduced in this release.

Instant Queries for Spring Data JPA

In the 2024.2 Ultimate release, enhancements have been made to the Spring Data JPA support. The new functionality allows you to view the queries that a method will generate without running the application and analyzing log files. Developers can now quickly verify that database operations are correct by executing methods from any repository directly in the JPA console.

Auto-completion of cron expressions

I'm sure every Spring developer has used@Scheduleto define some simple timed tasks, for the definition of execution rules using CRON expressions is very common, but many people are not so familiar with writing CRON expressions. Now, 2024.2 Ultimate version can solve this problem , when the developer writes a good cron attribute , it will pop up the auto-completion to give a prompt , you can see a variety of basic templates , it is too convenient !

GraalJS as an Execution Engine for HTTP Clients

The JavaScript execution engine used in HTTP clients has now been upgraded to GraalJS. This will allow developers to use all GraalJS features, including full support for the ECMAScript 2023 specification.

Log management enhancements

IntelliJ IDEA 2024.2 introduces enhanced log management for Java and Kotlin.

New features include highlighting of string literals and real parameter parsing, allowing you to seamlessly navigate from placeholder to corresponding real parameter, and IDEA can also check for mismatched log placeholders and parameter counts:

insofar as statement, now supports one-click conversion to log form:

Runtime performance charts

A new Performance tab has been implemented in the Run tool window. The new tab provides real-time CPU and memory charts and allows you to identify performance bottlenecks by capturing code execution time and viewing it directly in the editor. In addition, you can capture memory snapshots to inspect objects and identify the root cause of memory leaks.

String variable visualization tools for JSON, XML and other formats

Debugging and navigating complex data formats is now much easier. The updated debugger can visualize JSON, XML, HTML, JWT, and URL-encoded string variables by simply clicking on the View link next to the variable, and the associated visualizer automatically selects the variable based on its content.

Other updates

  • Start coding faster: The IDEA startup experience has been optimized. Developers can access and code key functionality even when IDEA is not fully launched.

  • Markdown supports mathematical syntax and can now use the$Insert inline math expressions using the$$Insert blocks of code that contain math content.

  • K2 Mode Stability Improvements and Performance Enhancements: This new Kotlin support mechanism lays the groundwork for future Kotlin language features and enhances the stability and performance of the IDE. In version 2024.2, K2 mode now supports scripts, Kotlin Multiplatform (KMP) projects, all major refactorings, code highlighting, debugging, and more. Benchmarks show that K2 Mode nearly doubles code highlighting performance on the IntelliJ IDEA Ultimate repository.

For more information about the updates in this release, you can also check the official information:/idea/whatsnew/

If you follow IDEA content, you can also check out the recently organizedPlaying with IDEAColumns, this time a change of tools, directly in the form of electronic documents, the reading experience is better, interested in these contents, you can pay attention to up!

Welcome to my public number: program ape DD. the first time to understand the cutting-edge industry news, share in-depth technical dry goods, access to high-quality learning resources