diff --git a/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java b/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java index 9d4a53c6..ea86dc36 100755 --- a/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java +++ b/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java @@ -33,9 +33,7 @@ class CacheConfiguration { @Bean public JCacheManagerCustomizer petclinicCacheConfigurationCustomizer() { - return cm -> { - cm.createCache("vets", cacheConfiguration()); - }; + return cm -> cm.createCache("vets", cacheConfiguration()); } /** diff --git a/src/main/resources/application-mysql.properties b/src/main/resources/application-mysql.properties index 823b32b6..1125dea5 100644 --- a/src/main/resources/application-mysql.properties +++ b/src/main/resources/application-mysql.properties @@ -2,6 +2,6 @@ database=mysql spring.datasource.url=jdbc:mysql://localhost/petclinic spring.datasource.username=root -spring.datasource.password=petclinic +spring.datasource.password=${DB_PASSWORD} # Uncomment this the first time the app runs # spring.datasource.initialization-mode=always diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html index b9026690..1fbf8b3b 100644 --- a/src/main/resources/templates/error.html +++ b/src/main/resources/templates/error.html @@ -3,9 +3,9 @@
- +Exception message
- \ No newline at end of file +