spring boot - PropertiesLauncher ignores -Dloader.path= -
i using spring-boot 1.3.5/os x/java 8.
the situation follows: need pass launcher class folder trigger devtools restarts. folder not known until execution.
i passing -dloader.path=/users/..../class_folder. when try create xml application context fnotf exception. "beans.xml" there.
i have tried -dloader.path=file:/users... , -dloader.path=file://users...
i thinking modifying launcher source use 1 of command line args last classpath entry.
but seems little bit overboard if functionality there.
any thoughts?
thanks lot!
i'm not sure configured correct or not. reference spring boot might helpful.
# ---------------------------------------- # devtools properties # ---------------------------------------- # devtools (devtoolsproperties) spring.devtools.livereload.enabled=true # enable livereload.com compatible server. spring.devtools.livereload.port=35729 # server port. spring.devtools.restart.additional-exclude= # additional patterns should excluded triggering full restart. spring.devtools.restart.additional-paths= # additional paths watch changes. spring.devtools.restart.enabled=true # enable automatic restart. spring.devtools.restart.exclude=meta-inf/maven/**,meta-inf/resources/**,resources/**,static/**,public/**,templates/**,**/*test.class,**/*tests.class,git.properties # patterns should excluded triggering full restart. spring.devtools.restart.poll-interval=1000 # amount of time (in milliseconds) wait between polling classpath changes. spring.devtools.restart.quiet-period=400 # amount of quiet time (in milliseconds) required without classpath changes before restart triggered. spring.devtools.restart.trigger-file= # name of specific file when changed trigger restart check. if not specified classpath file change trigger restart.
so, think should specify property spring.devtools.restart.additional-paths
instead of loader.path
.
please have try , let know no matter works or not.
please add layout
spring-boot-maven-plugin
configuration following if not add it:
<plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> <configuration> <layout>dir</layout> </configuration> </plugin>
and detail properties listed here: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#executable-jar-property-launcher-features.
from point, think can make it.
Comments
Post a Comment