Intellij IDEA CE + Spring Boot + Smart Tomcat with hot reload : how to? - spring-boot

I have a Spring Boot app + Intellij IDEA + Smart Tomcat plugin dev environment.
Whenever I change backend or frontend (WebContent folder) related code, I would like to trigger an auto-reload and have the Smart Tomcat deployment refreshed.
How can I achieve that?
Thank you for your help.

Related

Running Spring boot application in IntelliJ gives white label error

I am trying to run Spring boot web application in IntelliJ which gives me whitelabel error. However, I am able to run the application with eclipse and also external tomcat server.
I have the context mapping available where it is returned from the application but webpage always shows WhiteLabel Error 404.
Please suggest how does the same application works in eclipse and external tomcat but not with IntelliJ.
I am using IntelliJ community edition v 2020.2.3
web pages are available in webapp folder.
First download xammp server to your machine. Then run your spring boot application. I used this method to run my spring boot application. But keep in mind that IntelliJ community doesn't directly support to spring-boot. You have to use IntelliJ ultimate for that.

Mapping missing in Intellij IDEA for Spring Boot application

I am using Spring Boot 2.3.4 , IntelliJ IDEA Ultimate version 2020.2.2 . (Example project can be found here https://github.com/ehmkah/springbootintellij ) I don't see the "mappings" sub-view in IntelliJ IDEA Services View for my springboot-application. It should be right to Health. There are several endpoints configured - they are working I see them in the browser. I guess something is not configured correctly, but I only see errors like
AM Error Loading Project: Cannot load facet Web in EventLog.
Where should I look for errors or are there any known incompatibilities?
Mappings tab as a feature requires Spring MVC bundled plugin. Please make sure it is enabled in Settings(Preferences) | Plugins.
Spring boot application mapping is only accessible with Intellij Ultimate
use plugin Endpoints Explorer, it works well with Intellij Community

Spring Boot Deploying Old Project

I had created a spring boot project in the past, and now I am coming back to using spring boot again. However, I am running into issues when I click "run as spring project" (which informs me that my server/app has deployed as expected on port 8080 with a context root of "/"). When I open my browser and go to localhost:8080, it still shows up with content from my old project. Any ideas on how to fix this? (P.S. it is not a maven issue -- I have clean/installed).
Try following these steps :
1)Stop all the Java processes in your system .
2) Restart your app .
3) Open a new incognito window in your browser and try again .
If it still doesnt work , provide more details like which version of Spring boot are you using and contents of your application.properties .
Also , are you using docker to run your apps?

Can I configure SpringBoot app to run on a tomcat that is added to eclipse IDE in its servers tab?

I am trying to create a spring boot web app. But i dont want to create a jar out of it.
I want to run the web app directly from eclipse on to the tomcat that is added to eclipse via servers tab.
Is it possible? How to achieve it?

Spring Boot App works fine on IntelliJ but not in tomcat

I'm trying to deploy a Spring project (war format) in Tomcat. The project (https://github.com/iku747/DemoTec2) works fine in IntelliJ. However when i try to run war in Tomcat it only loads the first .jsp (login.jsp) and then if i try to do anything it said error404 resource not found.
I dont know what's happening, can anyone help me?
Information:
The project uses Spring MVC + spring boot + spring security + maven
Tomcat version: 8.5.23
Any other information about versions etc can be found on the github.
Thank you very much.

Resources