Run as Spring Boot option not appearing in STS - spring-boot

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.

Related

VS Code - Import and Run Spring Boot Project

I am trying to import and Run a Spring Boot Project which is working in STS under VS Code.
But I am facing the following error:
org.eclipse.core.runtime.CoreException: The project: ckac which is referenced by the classpath, does not exist.
Here is the screenshot of the Project Structure.
On my local machine, my project is under senp_kyc.
I used the option File -> Open Folder and selected the folder under which my Spring Boot Application code is present.
It will be great if someone could guide me for the same.

Spring boot application not detected by Intellij

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.

Spring Boot application is not running in STS with profiles due to Run Configuration is not showing Project names in Drop Down to be selected

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.

Spring boot application hot reload with text editors

How to develop spring boot application with pure text editors?
And with hot reload after you save your source code file. With build tools like maven or gradle.
It turns out you could install spring-boot-devtools to your pom.xml before start.
Start your application with command line
$ mvn spring-boot:run
As long as your text-editor support auto compile, it will reload.
I am using vs code in this case. A java compiler will popup for installation while you edit your source code. Amazing.

Getting spring boot project working, no sources were created

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

Resources