Use F2 to navigate to the next problem, or Shift+F2 to navigate to the previous problem, and Show Context Actions (⌥⏎ on macOS, or Alt+Enter on Windows/Linux) to see suggestions on how to solve the problem, for example, to import the relevant class. Some of the code is shown in red, which means there are some issues. To accept the suggested code, press the Tab key. When you press Enter after the comment, AI Assistant will suggest code to you. to the String "Hello", using “World” as the name default value which takes a String parameter called name and append this parameter Name this class HomeController.Īdd the following comment to the code: // Create a Java web rest controller for a web application containing a hello endpoint, Free GitLens+ Pro while you are a student.
GitLens provides auto-linking and rich hover information for GitHub pull requests and issues. Alternatively, right-click the Project tool window to open the context menu and select New | Java class. GitLens is the 1 Git extension for VS Code it unlocks the knowledge within your Git repos to help visualize code authorship by leveraging CodeLens and Git blame. Add a new Java file using the shortcut ⌘N (on macOS) or Alt+Insert (on Windows/Linux). In the Project tool window on the left, select the directory src/main/java/-app. Now, let’s add some code to this project. How do I apply You can apply with: official university email. Open the pom.xml to see the dependencies. Get your free educational license for all JetBrains IDEs. WebStorm All Products Pack for Organizations: 779 per user, first year. WebStorm for Individuals:69 for first year. Expand the Web section under Dependencies, select Spring Web, and then, click on Create.Īs you can see, IntelliJ IDEA has created the Spring Boot project for you, with a default Maven project directory structure, and a pom.xml that includes the dependency we selected when creating the project. WebStorm IDE has several pricing and licensing options for developers and development teams, with individual and commercial options, including: WebStorm for Organizations: 159 per user, for first year. We can also select the dependencies we want to add to our project here. We’ll go with the latest stable version, which currently is 3.2.2.
In the next screen, we can select which version of Spring Boot we want to use. Change the name of the project to greetings-app, select Create Git repository to add the project to version control, select Maven as the type, and click Next. In the New Project dialog, select Spring Initializr on the left. Our first step is to create a new project, which we can do right from the Welcome screen by clicking the New Project button, or (if we already have a project open), from the main menu by selecting File | New | Project. If you’d like to follow along with this tutorial, you’ll need IntelliJ IDEA Ultimate, as well as an active subscription to AI Assistant or the free seven-day trial license.
A free trial of WebStorm is also available. In this article, we’ll be building a small Java Spring Boot web application in IntelliJ IDEA with the help of JetBrains AI Assistant. WebStorm has 3 pricing editions, from 0 to 159.