I'm experimenting with J2EE servlets. My static files are compiled into the WAR. Is there a way to also allow static files to be served without precompilation? This makes it easy, e.g., to modify Javascript without recompiling? (My goal is experimentation, not production deploy)
Asked
Active
Viewed 64 times
0
-
https://stackoverflow.com/q/3906881/2970947 – Elliott Frisch May 09 '19 at 23:58
-
The modern approach is to use something friendlier like Spring Boot or Micronaut, and Spring in particular makes serving static resources [really easy](https://www.baeldung.com/spring-mvc-static-resources). – chrylis -cautiouslyoptimistic- May 10 '19 at 00:29