This article shows how to convert a Java project to a Maven project in IntelliJ IDEA. Table of contents 1. A Non-Maven Project 2. Add Framework Support – Maven 3. Update the default pom.xml 4. Reload the Maven project 5. References P.S Tested with IntelliJ IDEA 2021.1.1 1. A Non-Maven Project A non-Maven project (without […]

Read more Convert a Java project to Maven project in IntelliJ IDEA

In IntelliJ IDEA, we need to enable this auto-generate serialVersionUID option manually. P.S Tested with IntelliJ IDEA 2019.3.4, it should work the same in other versions. Intellij IDEA Settings File -> Settings -> Editor -> Inspections -> Java -> Serialization issues: Find serialization class without serialVersionUID and check it. Back to the editor, clicks on […]

Read more How to generate serialVersionUID in Intellij IDEA

For example, how to find out this FileUploadBase class belongs to which JAR or dependency? //… import org.apache.tomcat.util.http.fileupload.FileUploadBase; @ExceptionHandler(FileUploadBase.FileSizeLimitExceededException.class) public String handleError3(Exception e, RedirectAttributes redirectAttributes) { redirectAttributes.addFlashAttribute("message", e.getCause().getMessage()); return "redirect:/uploadStatus"; } Solution In IntelliJ IDEA, double clicks on the class name and press CTRL + n (win/*nix) or CMD + n (mac) to prompt out […]

Read more IntelliJ IDEA – How to know this class belongs to which JAR