Suppress noisy Spring boot logs, Hikari warnings, and clean Quartz/Hibernate startup output
This commit is contained in:
committed by
Aditya Chandel
parent
2407cf93fa
commit
09ee9ec357
@@ -38,7 +38,7 @@ dependencies {
|
|||||||
|
|
||||||
// --- Database & Migration ---
|
// --- Database & Migration ---
|
||||||
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.3'
|
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.3'
|
||||||
implementation 'org.flywaydb:flyway-mysql:11.7.1'
|
implementation 'org.flywaydb:flyway-mysql:11.8.0'
|
||||||
|
|
||||||
// --- Security & Authentication ---
|
// --- Security & Authentication ---
|
||||||
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
||||||
|
|||||||
@@ -27,10 +27,11 @@ spring:
|
|||||||
username: ${DATABASE_USERNAME:root}
|
username: ${DATABASE_USERNAME:root}
|
||||||
password: ${DATABASE_PASSWORD:${MYSQL_ROOT_PASSWORD}}
|
password: ${DATABASE_PASSWORD:${MYSQL_ROOT_PASSWORD}}
|
||||||
hikari:
|
hikari:
|
||||||
max-lifetime: 580000 # 580 seconds
|
max-lifetime: 580000 # 9.6 minutes (avoid DB-side connection cuts)
|
||||||
connection-test-query: SELECT 1
|
connection-test-query: SELECT 1
|
||||||
maximum-pool-size: 10
|
maximum-pool-size: 10 # Allows bursts
|
||||||
idle-timeout: 300000 # 5 minutes
|
minimum-idle: 1 # Shrinks when idle
|
||||||
|
idle-timeout: 300000 # 5 minutes before idle connections are closed
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
naming:
|
naming:
|
||||||
@@ -42,6 +43,7 @@ spring:
|
|||||||
batch_size: 500
|
batch_size: 500
|
||||||
order_inserts: true
|
order_inserts: true
|
||||||
order_updates: true
|
order_updates: true
|
||||||
|
open-in-view: false
|
||||||
flyway:
|
flyway:
|
||||||
enabled: true
|
enabled: true
|
||||||
locations: classpath:db/migration
|
locations: classpath:db/migration
|
||||||
@@ -52,3 +54,8 @@ logging:
|
|||||||
com.adityachandel.booklore: ${LOG_LEVEL:INFO}
|
com.adityachandel.booklore: ${LOG_LEVEL:INFO}
|
||||||
org.apache.fontbox: ERROR
|
org.apache.fontbox: ERROR
|
||||||
org.apache.pdfbox: ERROR
|
org.apache.pdfbox: ERROR
|
||||||
|
org.quartz.core.QuartzScheduler: WARN
|
||||||
|
org.quartz.simpl.SimpleThreadPool: WARN
|
||||||
|
org.quartz.simpl.RAMJobStore: WARN
|
||||||
|
org.hibernate.orm.connections.pooling: WARN
|
||||||
|
org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer: ERROR
|
||||||
@@ -13,7 +13,6 @@ import {Library} from '../../book/model/library.model';
|
|||||||
import {LibraryService} from '../../book/service/library.service';
|
import {LibraryService} from '../../book/service/library.service';
|
||||||
import {Dialog} from 'primeng/dialog';
|
import {Dialog} from 'primeng/dialog';
|
||||||
import {Password} from 'primeng/password';
|
import {Password} from 'primeng/password';
|
||||||
import {Tooltip} from 'primeng/tooltip';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-user-management',
|
selector: 'app-user-management',
|
||||||
@@ -26,8 +25,7 @@ import {Tooltip} from 'primeng/tooltip';
|
|||||||
NgStyle,
|
NgStyle,
|
||||||
MultiSelect,
|
MultiSelect,
|
||||||
Dialog,
|
Dialog,
|
||||||
Password,
|
Password
|
||||||
Tooltip,
|
|
||||||
],
|
],
|
||||||
templateUrl: './user-management.component.html',
|
templateUrl: './user-management.component.html',
|
||||||
styleUrls: ['./user-management.component.scss'],
|
styleUrls: ['./user-management.component.scss'],
|
||||||
|
|||||||
Reference in New Issue
Block a user