Caching, compression and devtools configuration

This commit is contained in:
Antoine Rey 2016-10-23 16:33:31 +02:00
parent ce9f9a8181
commit 841116f196
3 changed files with 9 additions and 5 deletions

View file

@ -0,0 +1,4 @@
spring.resources.static-locations=classpath:/static/,file:springboot-petclinic-client/src/,file:springboot-petclinic-client/bower_components/
spring.devtools.restart.additional-paths=springboot-petclinic-client/src/,springboot-petclinic-client/bower_components/
spring.devtools.restart.additional-exclude=**/*.html,**/*.js,**/*.css

View file

@ -0,0 +1,2 @@
spring.resources.chain.strategy.content.enabled=true
spring.resources.cache-period=86400

View file

@ -15,8 +15,6 @@ management.contextPath=/manage
# Logging # Logging
logging.level.org.springframework=INFO logging.level.org.springframework=INFO
spring.resources.chain.enabled=true server.compression.enabled=true
spring.resources.chain.gzipped=true server.compression.mime-types=application/json,text/css,application/javascript
spring.resources.cache-period=600 server.compression.min-response-size=2048
spring.resources.chain.strategy.content.enabled=true
spring.resources.chain.strategy.content.paths=/**/*.js, /**/*.css, /**/*.png, /**/*.html