mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
Caching, compression and devtools configuration
This commit is contained in:
parent
ce9f9a8181
commit
841116f196
3 changed files with 9 additions and 5 deletions
|
@ -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
|
|
@ -0,0 +1,2 @@
|
||||||
|
spring.resources.chain.strategy.content.enabled=true
|
||||||
|
spring.resources.cache-period=86400
|
|
@ -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
|
|
Loading…
Reference in a new issue