Intellij is not detecting spring boot application created in a different IDE.
The application in discussion is the one starting with the letter "e"
How can i fix this ? I am using intellij community edition.
As mentioned in the comment, there is no standard spring boot application in IntelliJ.
In the screenshot provided in the question, there is no pom.xml file. If you have that in the project then right-click on it -> Maven -> Add as a maven project.
If this doesn't work, read this https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000023059-IntelliJ-does-not-recognize-workspace-maven-modules for more analysis ways.
Related
Need some help in running Spring Boot Application, I have cloned a Microservice and Imported into Eclipse. Now I want to run this as spring boot application in my STS(4.10.0 version). While running I need to supply profile. For this I am setting up configuration (Run Configuration).
Steps :
Right click on Project
Select Run As > Run Configurations
Select "Spring Boot App" -> Click to Add new Configurations
Here I am unable to select Project, it is not displayed in drop down. Below is screenshot
Note : I tried Importing Project as "Maven Project", "Existing project Into Workspace" and Git project into workspace. All these 3 ways are not working for me
Need help
This looks like your project is not recognized as a Spring Boot application. Without looking at your project it is hard to say why the IDE doesn't identify your project as a Spring Boot project. Does that work when you create a new Spring Boot project using the Spring wizards? Also feel free to share a link to your project, we would be happy to take a deeper look.
As a workaround, you can always start your Spring Boot application as a regular Java Application using the "Run as Java Application" in the IDE. That way you would have to set the active profiles via a system property in your launch config.
Oddly, I had this issue for a spring boot maven project and it was pom.xml being malformed even with no warning or error. Took me days, I had imported/re-imported/messed with the java build path/compiler and installed jres. I was unable to download maven dependencies. I took a look in the dependencies section of the pom.xml and noticed lifecycle-mappings issue. Once I took out the 3 lines of incorrect xml syntax in the pom.xml I was able to download the maven dependencies and then the project appeared as a spring boot project in run configs.
I imported a Working Spring Boot Maven Module Application into STS and the "Run as Spring Boot" option is not appearing. I did a Maven Update, Clean and Install. When the Install runs it completes some simple JUNIT tests. I'm sure its just a config problem somewhere. I know this isn't a lot to go on.
Ensure you are looking for Run As -> Spring Boot App while right-clicking on the Boot project in the Package Explorer or Project Explorer.
If the action isn't there open Launch Config wizard (Run As -> Run Configurations...). Check if "Spring Boot App" category is in the list on the left.
Since a while I started to use IntelliJ instead of Eclipse. I created my project from Eclipse (where it was working) in IntelliJ and I can start the Spring Boot Application. As a Front-end I use JSP files, but when I open the project in my browser it shows only the HTML code, not the actual website. Can anyone help me with this problem?
I am aware that this thread is 3 years old, but since I'm currently working on something similar (spring boot + web application + jsp + intellij ultimate as IDE), wanted to share my experience...
created spring web application using spring initializr (provided
inside intellij IDEA)
created webapp folder under src/main
opened project structure window (ctrl-shift-alt), selected modules under project settings
in the middle window pane, selected Web
added newly created folder (src/main/webapp) under "web resources
directory"
applied changes
After that, in my "left click - new" drop down menu, jsp files were also provided...
My current Intellij IDEA Ultimate version is 2020.1
Hope this helps...
I also faced similar kind of issue earlier. I have solved it by adding the following dependency.
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>
I have created a project sometime ago to cover this issue. The link to the project is mentioned below. Please refer it. I wish it will help you.
Spring Boot Maven Webapp
Hi guys I just downloaded intellij idea version 2016.3.1 in mac os x el capitan
and try to create spring boot project. I did everything according to Creating Spring Boot Projects tutorial however I sources are totally different and does not have any resources or default java class.
Someone had similar problems over here but his solution did not help me Difficulty Getting Spring Boot Project Working
Problem was with maven in intellij to fix this go to
1. Preferences, Build, Executins, Deployment
2. Maven
3. Runner
under GRE tab specify your JRE path
Hope it will help you
I have developed struts1 application with Eclipse. I had to change my IDE into IntelliJ. I need to develop a new application integrating struts1 and Spring. I found some interesting tutorials from,
struts-spring-integration-example
and spring-and-struts-integration/
Since above examples were developed using Eclipse IDE, I might wonder is there is any better (easy) way of doing it using Intellij .
Please mentioned any tutorials or better way to doing this.
What did you try? I got Spring working in IntelliJ using Maven and copying other working projects. I hope that also can work for you. Configure Maven for IntelliJ, if you can get spring working with IntelliJ try make it work from the command prompt with maven + your app server (I can recommend jetty) and then you can open the Spring/Maven project in IntelliJ and it will work.