I am using IntelliJ (14.0.3) and Wildfly (8).
When I recompile my Java classes, hot swapping is easy and everything works just fine. However, my HTML, JS and CSS files will not hot swap for me. I am sure it is just a configuration issue and was hoping for some help.
My HTML data is in:
<root>/<war_module>/src/main/webapp
My run/debug is setup for:
Before launch: Make, Build Artifacts
- Make
- Build 'mymodule:war' artifact
You can use IntelliJ IDEA Ultimate to build applications with JavaScript, TypeScript, React, Vue, Angular, Node. js, and other related technologies. You can expect the same advanced coding assistance that you are used to when working with Java in all of them.
JVM languages Use IntelliJ IDEA to develop applications in the following languages that can be compiled into the JVM bytecode, namely: Java. Kotlin. Scala.
IntelliJ IDEA Community Edition and IntelliJ IDEA Edu are free and can be used without any license.
With more than 33 percent of the market share, IntelliJ IDEA is the most used Java IDE in 2022. It also has a stellar user rating of 4.3 and a whopping 89 percent user satisfaction. IntelliJ IDEA has unique resources like a version control system, frameworks, and multi-language support.
I had the exact same problem, this is how it worked for me:
After configuring your JBoss server (Wildfly), setup an artifact of type exploded, in my case I selected Web Application: Exploded, and then in the Output directory add .war to the end of the name.
In case you need a .ear, simply select JavaEE Application: exploded instead, but anyways always remember to add manually the extension.
After setting this artifact to work with your Application Server, in the edit configurations of your Wildfly server select the option Update resources in the list of options in the section On frame deactivation.
So every time you modify and save static content, it will update these changes as soon as you focus something else outside the IDE, like the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With