diff --git a/pom.xml b/pom.xml index ef18709..e0ce71c 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,10 @@ org.thymeleaf.extras thymeleaf-extras-springsecurity6 + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot spring-boot-devtools diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index e218f64..7051338 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -3,5 +3,3 @@ spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url=${JDBC_DATABASE_URL:jdbc:mysql://localhost:3306/simple_invoicing_db?allowPublicKeyRetrieval=true&useSSL=false&createDatabaseIfNotExist=true} spring.datasource.username=${JDBC_DATABASE_USERNAME:root} spring.datasource.password=${JDBC_DATABASE_PASSWORD:root} -#JPA properties -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 126b21d..830ab7e 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -3,5 +3,3 @@ spring.datasource.driverClassName=org.postgresql.Driver spring.datasource.url=${JDBC_DATABASE_URL:jdbc:postgresql://localhost:5432/simple_invoicing_db?createDatabaseIfNotExist=true} spring.datasource.username=${JDBC_DATABASE_USERNAME:docker} spring.datasource.password=${JDBC_DATABASE_PASSWORD:docker} -#JPA properties -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d4e92d3..f8d8c7d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -12,7 +12,6 @@ spring.datasource.password=${JDBC_DATABASE_PASSWORD:docker} #JPA Properties #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect -spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.format_sql=TRUE spring.jpa.hibernate.ddl-auto=update spring.jpa.open-in-view=false @@ -40,5 +39,5 @@ cloudinary.api-secret=${CLOUDINARY_API_SECRET:!} #File Upload Properties spring.servlet.multipart.max-file-size=3MB spring.servlet.multipart.max-request-size=3MB - - +#Expose specific actuator endpoints +management.endpoints.web.exposure.include=health