Excuse me, Tomcat needs to mvn package every time it starts. What's the problem?

1. After updating the project, I found that Tomcat did not load the latest project resources
2. I need to mvn package every time I start Tomcat, otherwise my project will not be up-to-date (no matter what has been changed, I need to mvn package o (updated items) o)
3). Use the IDEA editor
4. Ask Daniel to solve it

Mar.04,2021

your problem is that IDEA does not compile the project, and IDEA simply saves the file, not the compiled file.

you can use IDEA's macro operation to compile, record an IDEA macro as ctrl+s-> this macro includes save operation and compile operation, then it can be saved and compiled when you do ctrl+s.

aside: jrebel can be hot deployed and dynamically compiled myjrebel can achieve free effect

Menu