All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.defaults.yml Maven / Gradle / Ivy

The newest version!
# ===================================================================
# Spring Boot configuration.
#
# This configuration will be overridden by the Spring profile you use,
# for example application-dev.yml if you use the "dev" profile.
#
# ===================================================================

# ===================================================================
# Standard Spring Boot properties.
# Full reference is available at:
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================
# set -Dspring.profiles.active= as JVM argument to run in desired profile
# If no profile is specified explicitly, application will fall back to default profile, which is "local"

spring:
    #profiles:
        #active: local
        #include:
            #- feature-1
    #application:
        #name: application-name  
    devtools: 
        add-properties: false
        restart: 
            enabled: false
            exclude: logs/*,application.log,*.log,*.log.*
    autoconfigure:
        exclude: 
            - org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
            - org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
            - org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration 
            - org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration
            - org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration
            - org.springframework.cloud.openfeign.hateoas.FeignHalAutoConfiguration
            #- org.springframework.cloud.configuration.CompatibilityVerifierAutoConfiguration
            #- org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration
            
    datasource:
        name: datasource
        url: ${POSTGRES_URL}
        username: ${POSTGRES_USERNAME}
        password: ${POSTGRES_PASSWORD}
#        driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
        hikari:
            pool-name: client-connection-pool
            maximum-pool-size: 32
            minimum-idle: 8
    jpa:
        hibernate:
            ddl-auto: validate
        database: POSTGRESQL
        database-platform: org.hibernate.dialect.PostgreSQLDialect
        open-in-view: false
        show-sql: false
        properties:
            '[hibernate.show_sql]': false
            '[hibernate.format_sql]': true
            '[hibernate.use_sql_comments]': true
            '[hibernate.jdbc.time_zone]': UTC
            '[integration.envers.enabled]': true
    flyway:
        enabled: false
        baseline-on-migrate: false
        out-of-order: false
        locations:
            - db/migration
    messages:
        basename: i18n/messages,i18n/errors
        cache-duration: PT10S # 10 second, see the ISO 8601 standard
        fallback-to-system-locale: true
        always-use-message-format: false
        use-code-as-default-message: false      
    main:
        log-startup-info: true
    # Highest priority (only lower that VM args), override from application.yml 
    #config:
        #import: 
            #- classpath:/config/default.properties
            #- classpath:/config/override.properties
    task:
        execution:
            thread-name-prefix: app-task-executor-
            pool:
                core-size: 4
                max-size: 16
                queue-capacity: 10000
                keep-alive: "10s" 
    #jackson:
        #date-format: yyyy-MM-dd HH:mm:ss
        #time-zone:
        #locale: 
        #property-naming-strategy: 
        #serialization:
            #write-dates-with-zone-id: true
            #write-dates-as-timestamps: false
            
    #hateoas:
        #use-hal-as-default-json-media-type: false

    mvc:
        throw-exception-if-no-handler-found: false    
        pathmatch:
            matching-strategy: ant-path-matcher
        #format:
            #date: yyyy-MM-dd
            #date-time: yyyy-MM-ddTHH:mm:ss
            #time: HH:mm:ss
            #date-time: iso
    #web:
        #resources:
            #add-mappings: false
    #webflux:
        #base-path: hammer

#------------------------- Swagger configuration -------------------------
#springdoc:
#    show-actuator: true
#    group-configs:
#        -
#            group: actuator
#            display-name: Actuator
#            paths-to-match: /actuator/**
#        -
#            group: application
#            display-name: Application
#            paths-to-match: /**
#            paths-to-exclude: /actuator/**

#------------------------- Actuators configuration -------------------------
# If not specified '/actuator' is taken as default. If specified must start with '/'
#management.endpoints.web.base-path=/
# Set it as "*", if you want to expose all actuator endpoints
#management:
#    endpoint:
#        health:
#            enabled: true
#    endpoints:
#        web:
#            exposure:
#                include: info,health,metrics
#    metrics:
#        tags:
#            application: ${spring.application.name}

server:
    forward-headers-strategy: framework
    #port: 8080
    #servlet:
        #context-path: gets        
        #session:
            #cookie:
                #secure: true

logging:
    #file:
        #path: logs
        #name: ${logging.file.path}/application.log
        #clean-history-on-start: true
    level:
        ROOT: info
debug: false

# ===================================================================
# Application specific properties
# Add your own application properties here
# ===================================================================

         




© 2015 - 2024 Weber Informatics LLC | Privacy Policy