diff --git a/pom.xml b/pom.xml index d017f3f..2c2e767 100644 --- a/pom.xml +++ b/pom.xml @@ -94,6 +94,11 @@ springdoc-openapi-ui 1.6.7 + + com.sun.mail + javax.mail + 1.6.2 + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 9ab579b..904cd25 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -73,3 +73,28 @@ spring: on-profile: prod welcome: message: Welcome to Daily Code Buffer!! + + +--- + +management: + endpoint: + health: + enabled: true + show-details: always + endpoints: + web: + exposure: + include: '*' + jmx: + exposure: + include: '*' +--- +info: + app: + name: @project.name@ + description: @project.description@ + version: @project.version@ + encoding: @project.build.sourceEncoding@ + java: + version: @java.version@ \ No newline at end of file diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..1e392ee --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,65 @@ + + + + + + + ${LOG_FILE} + + + logs/archived/app.%d{yyyy-MM-dd}.%i.log + + 5KB + + 20KB + + 60 + + + + %d %p %c{1.} [%t] %m%n + + + + + + + %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n + + + + + + + smtp.gmail.com + 587 + true + senderMail@gmail.com + senderMailPassword + test@gmail.com + senderMail@gmail.com + DCBApp: %logger{20} - %m + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file