dirkdeyne / zk-spring-boot-starter

spring boot starter for zk framework
Apache License 2.0
5 stars 4 forks source link

Hot swapping zul files #8

Open MaximeDucheneS opened 6 years ago

MaximeDucheneS commented 6 years ago

Hi!

Great project by the way.

I've encountered an issue with hot swapping zul files using Spring Devtools.

Spring Devtools docs mention you need to build your changes, but when I save a zul file, it does build.

No issue hot swapping Java classes.

Thanks!

blackr1234 commented 5 years ago

To hot swap ZUL files, you can download the DevelopmentConfig class from zkoss/zkspringboot GitHub:

https://github.com/zkoss/zkspringboot/blob/8dffad803d0b619d516356cd00eed22973a5e78f/zkspringboot-demos/zkspringboot-demo-jar/src/main/java/org/zkoss/zkspringboot/demo/DevelopmentConfig.java

Then run your Spring Boot project with spring.profiles.active = dev. Alternatively you can comment out line #13: @Profile("dev").