13

IntelliJ IDEA 2022.2 EAP 5: Support for Spring 6 and Spring Boot 3 Features, Enh...

 3 years ago
source link: https://blog.jetbrains.com/idea/2022/06/intellij-idea-2022-2-eap-5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

IntelliJ IDEA 2022.2 EAP 5: Support for Spring 6 and Spring Boot 3 Features, Enhanced HTTP Client, Kubernetes Updates and More

Maria Kosukhina
Maria Kosukhina June 17, 2022

Table of Contents

IntelliJ IDEA 2022.2 EAP 5 is now available! You can get the new build from our website, through the free Toolbox App, or as a snap for Ubuntu.

This build brings numerous framework-specific updates that include support for Spring 6 and Spring Boot 3 features, support for Websocket and GraphQL requests,  improvements to the HTTP client, and more. This build also includes some new features for Docker and Kubernetes.

Read on to learn more about the most notable changes introduced with the latest build.

Frameworks and Technologies

Spring 6 and Spring Boot 3

IntelliJ IDEA 2022.2 now fully supports Spring 6 and Spring Boot 3 features, including new @AutoConfiguration classes and @ConfigurationProperties classes with the new constructor binding syntax without explicit @ConstructorBinding.

AutoConfig.gif



ConstructorBinding.gif

Support for new declarative HTTP Clients in Spring 6

The Spring Framework 6 lets you define an HTTP client as a Java interface with annotated methods. IntelliJ IDEA 2022.2 provides URL completion, navigation, and integration with the HTTP Client for such interfaces.

zzCMBTX8LoGxwTB8wHiPSWLnKE_SYYP_ABv892sroE81D8F-lLe-7fQdv_Hy2hMd5VOnlGJ3uOGB66rWscr42ufMfG0XgknSTYNfB2rBd7_n1iiWP6niL0GCLbgOr0vK5CFNJ7gbSLyI9J0zSA



oAE3RNB0o2WNoMlLh3QvCQKtsbLwb3BTkG7cqrZdEyPLbG1r7YYWSoSLj8HN8FS6VinJ51NQ__PB6YePnuYr4r-BOs-Sqrjec0qg_Ap3gZynhLVXbZfmEkOsT_Y47-3f2HSFiQEq0jQCN5tbRg



mK21oU5fI18ZHudDl09PWKkRFjfBzvgaajf09UB-vbex9SncX6uyj-qFJFrOzKir_uQtdkvY4JdFrURiujrRUeW_FtOabV9xeoq78-da4huTb3R-E8Jhuf3XHcgHr5gdv6EL6WmrUpSXCb02Tw

URL completion and navigation for Spring Cloud Gateway routes

IntelliJ IDEA Ultimate now provides URL completion, Search Everywhere functionality, and find usages hints for Spring Cloud Gateway URLs. You can easily generate an HTTP request or find all gateway routes using the Endpoints tool window.

MZBQbv92u67tT01cEC2yLiJzmjD12pSBkCNbkbN43RLzeZ_1O9isWbWwe6ElXX5T57_dXRMVcsxG2vSxNrM6ZgMjR2lsr7NaKeOoRL87eXjBVev3NJHGs7NyP5udeUIcOTuzIg6W_9f3Li4Zcg



1_JMsp9ZNLSh6WUR8ayTfW-SXkQGm98UvpNCrsrGKR2ZCf4IOctjjbI1ie9TBD-Gx50UbfhEjKURu6_gt0acwfKUay38s3X5fzn7Jzaoh6F-rd2I4yUIki6S84MLhtQgmb_79Lt9FFIEsW4XNA

Experimental GraalVM Native Debugger for Java

IntelliJ IDEA 2022.2 can now help you with debugging GraalVM native image binaries. You can attach the debugger to any GraalVM-based executable or start your application with a debugger attached. The corresponding run configuration will be created automatically for Maven/Gradle projects.

Please note that this integration is experimental and requires the dev build of GraalVM and this plugin to be installed.

i58FJ818Y860a0DAgVDb5ZozhFdpECeogwwNWPCn1_nfwByD_68v_7SvTH6KbvlOWrOhXzQVBtecjUGrN00Hl_6LVB_NaGSOkjULu38CtnPnTyZv2-0ghfS6ojRH8E77psAS7REFgdOzdvTPeA



vOH6q1SPtuRlEEZtXIziUDDZUDIsx6ex3xPTRB5NcDgK2KOnXmKflQ2f3UV2xjKn_y8FSfS4kw-gVMbzafRVA3GOhMOUFmlYsvexdTPZoeu8MPeEhoDOb7CRmFaNjsaT2RChwzpPJt1uOARQmw

ax2uNxeUsYp4kyjHv3sp9W9vDhIPR8TG6fMDYEDbVFa6OEJRvlrH_Tm5FqjW5AM92PcmGE0pYs2SJPGuTLI6TW1qOzcwnZpm4ww76pzCmvO9F4cgw05noEHd1FDspdfjRyv7C4xS9Y0YBUKOpQ

Code insight improvements for JVM microservices test and mock frameworks

IntelliJ IDEA 2022.2 automatically highlights JSON/XML bodies in tests with popular Java APIs such as Spring WebTestClient, RestAssured, WireMock, and MockServer.

As a result, these data fragments feature better readability and are easier to edit. You can also use URL completion and navigation to declaration in these places in your tests.

cIHLDHjyBGbjr5OA-tUVO8Ph-0_cOKqQd5et95SpzbnEknmTcosI-YTv6xEw6A7RKBqhp1u1dXuJw5Oc9kJyve9xywYmeZZBMBraZn7JBa0JpjdLHkAxMCH2Wsq4eFg4fN_gHjMXuB3NgX0VTg

dSHzeazi244BzAlkkBrqM5z_CKJwcpFupa3nsAqhMjvwLzx86_-apoRZDPHYP3nCWAIOOkTRM58MIrCjui6OdE_nF4ltR-MRqJcR44pxPwl1QdhoDTyIkGsCqmHozE2IM-BlvVRdl7kRH-xd5Q



Pd4936DbfI5_P_QnSx55ymbMpfCOAA9JsLtwpkJPfNKMNm6RqxFAHNm5Z2e9aC5N-Sj6p97yg5yNKjpTmUl1MjlT-18NYWJo6muVgn8Iz033uQmchBgFsyLDT6fr4Q9i8ZcAwojTHh2Q_xQYXw

Code insight improvements for Spring Shell

IntelliJ IDEA 2022.2 now recognizes CLI commands declared with Spring Shell library and checks their correctness.

QQrI2QhTv7LHBWXmlFbl1tlucljc7RRoZWqFlcQa3nB4jy7ApTU-QW0RyfMMptpR0RnEopExxPNVT4HjXqvCHsy4coXqOwolm7dqp6rwjXqG7NEGCiCriiNp9RYmifpFXrhsAZ92WhVA8ef2IQ

Improved support for JAX-RS endpoints

Since v.2022.2 IntelliJ IDEA correctly supports JAX-RS common web service URL patterns declared as @ApplicationPath and sub-resources in URL completion, navigation, and find usages.

MWfvgIkseYQ_M0C56q7l2Hb07p1pxhORa-ksxc5URJYvD9o2UGGYmoSuwme8aWrh6TBb_H3BGKCDl72-sNVcgLYf67AlVNNF2YSYDWdF52xGjXaVQg92o5-2CUDylL3Y1aRK8i-_NrNjFMKs8Q



mrwvThGtgfBKZIuW-2_ix0XlxxOqxNH-DVwFtEAD5AkxxfDzsDnvFIUU-ndMpSWiLhJrNk3NwMI5DhIsyJ2l3GVopAMi_39JtmOoR_hVUZeZfUj5jV6f2CJ69XrEcSUkfMrB3hbCYEsdH4cijA

Support for WebSockets endpoints in HTTP Client

IntelliJ IDEA 2022.2 Ultimate supports WebSocket connections which allows you to create requests, and send and receive messages.

sUK1N_-natdlIzjB4F2BKB60I_JF1EPPsAKx6zUIT0-lLVYyrsY3vy6TwqFObMBwyfCia0Xk7PzuqHGzHet-1dxNgUhdKfnrmr7P0grnozs8NsToP4wAcftX2ldIFC5h5FRB6JDjrBqaKja18g

RQrEkNzMFm8jUjcqBFzTEK7ntn0FpeE9aZF3of3lUm1-FtzAeGJGO0k1d-5VqHVajJ63P-1gitN2ozE3LqzgxcaN1T9qOKb__NyuYjmZwfZYGSyPC9eLV5WSpqFJNSGJhe_gA45215NXETO3Yg

Support for GraphQL endpoints in the HTTP Client

With the v.2022.2 release, we’ve introduced support for GraphQL requests in the HTTP Client.

IntelliJ IDEA Ultimate can now send GraphQL queries over HTTP and WebSockets protocols out-of-the-box. For http:// and  https:// simple HTTP requests are used, while ws:// and wss:// are delegated to the WebSocket executor.

G8xyhIwJ4-eGZQnHg0b9nTWeY90BMg05m8wnWFMXjGhqwDA95X4C9xJhKc3Mht4LHJoXVXVNVw_CugVBn9QvzfjUDzBNXomdvvPCS2sqvmq-aninJPd1Ot2gienhVtSOo0_QGGhn3CcCMZXWIA

UI/UX improvements for the HTTP Client

We’ve introduced a couple of UI/UX improvements to the HTTP client. Firstly, we introduced a convenient way to select a run environment using an icon on the gutter. To enable this feature, choose the Select Environment Before Run option from the Run with combobox.

Q36piPF8weuuT-ehsbOEcZNX7he_wUAefwRaxq9FA1xABKCg7pnCbujs1NlVekubPp30SGXKYOxk_p-UJZixaRyrqs5LkWUcgIf9ROYKpHFUhd1Z4T8V8zvZ9jm49jSyvcOpLOLLpom5JeGE9A

Secondly, we improved the Response view by adding a progress bar, which allows you to track the downloading process.

DftDYTqkACRZKdc1zcnvObTCp4nNHHR9sFFCqRYyVLFZC1CqvJAxb8RJwvWzlE44srXjIPlGFF0K875KUynaptifcv7_Ze_zXKo9VbqKJ7KqRAgaofKGs6bT1ELk4filTFkmlVol41OQFOq1ug

Improved navigation between Protobuf and Java sources

You can now easily navigate to generated code from .proto files and back. Make sure both gRPC and Protocol Buffers plugins are enabled.

XNP7nEC9bzh1IiuvnsuA33lnDOzY2CMJ0OEUaTtuQnW-hLiCOKdWS71w2V4O7ieA4ztbMeph-O7fxzINrCpEykwmPZYKsKPw1fuJRS6NzDq4czKZZfdzMEVdUANNRpYVUqzMAoaG14iRdGjfgA

Kubernetes and Docker

Intercept Kubernetes service requests with Telepresence integration

The Kubernetes plugin for IntelliJ IDEA 2022.2 provides integration with the Telepresence tool in order to intercept HTTP requests from services in the K8s cluster and route them to your service running locally. This allows you to debug those services more easily and run only the required subset of services locally.

UCblSVLIzFUPw8SkKrYMPjE7Sxrwv-JqRX2HmBCu5y7BknhaOVS3IEAhqTal29eYKeHPwnYbv6n55dFNbirI5eVnMI71x1x4Wd5U95wSRZoyXcBe_JJz5Jgcq6_ewfBwSBCcMK283nFkRph06g

Upload local Docker image to Minikube and other connections

You can now easily copy images from one Docker daemon to another using the new Copy Docker Image action that saves the image to a file and then pushes it to the chosen connection.

xbPPUF2fV1z9Y1yqLLBydd_Z77iB40Eh034QGgZNZr-ADFXpjD5bRmrWNEHCQs5HPiom5GiEiP_77PG8CCS9LVfhBsmHIcRPk0IxBvQvGeEC9CYWDobGBNdHdxxdojt_JGsKEb7_PFE-3EhqXQ

Docker auto-connection at IDE restart

IntelliJ IDEA now automatically connects to Docker after you restart the IDE. This new setting is enabled by default in Settings / Preferences | Advanced Settings | Docker.

8T0aQu4P0oc2ZCcSu22qgyfZ0igrE1xSSBErZblJ7hFqzUyrBFYE5-aG7I7W08Ydm6koLnAEmrIp36vjNXpVhx4a29wsESJaJ9al4WcVn5_P51QKxFIxQv4GyfyGAr0dnU2nlWoxU4agyWOSDw

Docker connection options for different docker daemons

As of v.2022.2, IntelliJ IDEA integrates with Colima and Racher to support more options for establishing connections to a Docker daemon.

These are the most notable changes in the IntelliJ IDEA 2022.2 EAP 5 build. For the full list of improvements, please check out the release notes.

The Early Access Program won’t be a success without your valuable feedback – we rely on it when crafting new features or resolving bugs. Please let us know your thoughts about the updates in the comments section below, via Twitter, or by using our issue tracker.

Happy Developing!

  • Share

</div


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK