application.yml 1.66 KB
server:
  port: 8086
spring:
    main:
        allow-bean-definition-overriding: true
    datasource:
        url: jdbc:postgresql://192.168.9.133:5432/event_data_handle
        username: postgres
        password: authpass
        # 使用druid数据源
        type: com.alibaba.druid.pool.DruidDataSource
        driver-class-name: org.postgresql.Driver
        # 下面为连接池的补充设置,应用到上面所有数据源中
        # 初始化大小,最小,最大
        initialSize: 5
        minIdle: 5
        maxActive: 20
        # 配置获取连接等待超时的时间
        maxWait: 60000
        # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
        timeBetweenEvictionRunsMillis: 60000
        # 配置一个连接在池中最小生存的时间,单位是毫秒
        minEvictableIdleTimeMillis: 300000
    jpa:
        show-sql: true
        database: postgresql
        hibernate:
              ddl-auto: update
        #database-platform: org.hibernate.dialect.PostgreSQL9Dialect
        database-platform: com.viontech.common.JsonbPostgresDialect
        properties:
               hibernate:
                     dialect: org.hibernate.dialect.PostgreSQL9Dialect
                     hbm2ddl:
                           auto: update
                           temp:
                               use_jdbc_metadata_defaults: false
                     format_sql: true
    activemq:
      user: admin
      password: admin
      broker-url: tcp://192.168.9.133:61616
    jms:
      pub-sub-domain: false
message:
  audit:
    isOpen: true
    httpUrl: 127.0.0.1:16060