Browse Source

Dev props & Spring security: add actuator end point, formatting updates

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
7fc8dd678d
2 changed files with 7 additions and 1 deletions
  1. +1
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java
  2. +6
    -1
      bookstore/src/main/resources/application-dev.properties

+ 1
- 0
bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java View File

@ -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"),


+ 6
- 1
bookstore/src/main/resources/application-dev.properties View File

@ -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
spring.jpa.show-sql = true
management.endpoints.enabled-by-default = true
management.endpoints.web.exposure.include = *

Loading…
Cancel
Save