diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java b/bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java index 98683f0..83f7d43 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java @@ -130,6 +130,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { .authorizeRequests() .antMatchers( env.getProperty("spring.h2.console.path") + "/**", + env.getProperty("page.url.statsref") + "/**", env.getProperty("page.url.index"), env.getProperty("page.url.list"), env.getProperty("page.url.error"), diff --git a/bookstore/src/main/resources/application-dev.properties b/bookstore/src/main/resources/application-dev.properties index 8c82b91..08968ef 100644 --- a/bookstore/src/main/resources/application-dev.properties +++ b/bookstore/src/main/resources/application-dev.properties @@ -8,4 +8,9 @@ spring.h2.console.enabled = true spring.h2.console.path = /h2-console spring.datasource.url = jdbc:h2:mem:testdb -spring.jpa.show-sql = true \ No newline at end of file +spring.jpa.show-sql = true + + + +management.endpoints.enabled-by-default = true +management.endpoints.web.exposure.include = * \ No newline at end of file