Riccardo Balbo пре 4 година
родитељ
комит
4bc2b21a9b
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 2 1
      build.gradle
  2. 3 1
      src/main/resources/application.properties

+ 2 - 1
build.gradle

@@ -47,7 +47,8 @@ dependencies {
     implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
     implementation "org.springframework.boot:spring-boot-starter-data-jpa"
     implementation "org.springframework.boot:spring-boot-starter-jdbc"
-    //implementation "org.springframework.boot:spring-boot-starter-security"
+    implementation 'org.springframework.boot:spring-boot-starter-actuator'
+    // implementation "org.springframework.boot:spring-boot-starter-security"
     // implementation "org.springframework.boot:spring-boot-starter-websocket"
     // implementation "org.springframework.boot:spring-boot-starter-activemq"
     implementation "org.springframework.boot:spring-boot-starter-mail"

+ 3 - 1
src/main/resources/application.properties

@@ -24,4 +24,6 @@ server.use-forward-headers=true
 # server.ssl.key-store-password = indiegamer
 # server.ssl.key-store = classpath:ssl-server.jks
 # server.ssl.key-store-provider = SUN
-# server.ssl.key-store-type = JKS
+# server.ssl.key-store-type = JKS
+management.endpoints.jmx.exposure.exclude=*
+management.endpoints.web.exposure.include=health