0

I am running a simple Maven web application using spring. My project structure is as following

src-main-java
src-main-webapp

My HTML file in the webapp folder. When I do update class and resource in debug mode it updates my Java classes but not my HTML files.

How to fix this?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Mahabub
  • 511
  • 2
  • 6
  • 16

2 Answers2

0

Use exploded artifact which name ends with .war or .ear.

See more here: IntelliJ hot swapping classes, but not JSF pages

Community
  • 1
  • 1
Ivaylo D. Ivanov
  • 3,783
  • 1
  • 12
  • 16
0

There is a known issue. You may need disable cache in your view resolver. then it should work just fine.

e.g. resolver.setCacheable(false); for Spring or ThymeLeaf application.

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
LynAs
  • 6,407
  • 14
  • 48
  • 83