diff --git a/springboot-petclinic-server/src/main/resources/application-dev.properties b/springboot-petclinic-server/src/main/resources/application-dev.properties new file mode 100644 index 0000000000000000000000000000000000000000..db51bdd42f7c4eebe04a1c3bf77bd717de07950c --- /dev/null +++ b/springboot-petclinic-server/src/main/resources/application-dev.properties @@ -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 \ No newline at end of file diff --git a/springboot-petclinic-server/src/main/resources/application-prod.properties b/springboot-petclinic-server/src/main/resources/application-prod.properties new file mode 100644 index 0000000000000000000000000000000000000000..1cee36ad1a4fccf3921c69e91d004829e4df4145 --- /dev/null +++ b/springboot-petclinic-server/src/main/resources/application-prod.properties @@ -0,0 +1,2 @@ +spring.resources.chain.strategy.content.enabled=true +spring.resources.cache-period=86400 \ No newline at end of file diff --git a/springboot-petclinic-server/src/main/resources/application.properties b/springboot-petclinic-server/src/main/resources/application.properties index eee318bdaabf64c5c510b010726b5f759db7862a..e99b56c56c2c481235daf79fc37d0fb2fa6da610 100644 --- a/springboot-petclinic-server/src/main/resources/application.properties +++ b/springboot-petclinic-server/src/main/resources/application.properties @@ -15,8 +15,6 @@ management.contextPath=/manage # Logging logging.level.org.springframework=INFO -spring.resources.chain.enabled=true -spring.resources.chain.gzipped=true -spring.resources.cache-period=600 -spring.resources.chain.strategy.content.enabled=true -spring.resources.chain.strategy.content.paths=/**/*.js, /**/*.css, /**/*.png, /**/*.html \ No newline at end of file +server.compression.enabled=true +server.compression.mime-types=application/json,text/css,application/javascript +server.compression.min-response-size=2048 \ No newline at end of file