Skip to content

Instantly share code, notes, and snippets.

@mruv
Created October 5, 2018 06:17
Show Gist options
  • Save mruv/d942951e2f1a02cb39efc52766f1dcd0 to your computer and use it in GitHub Desktop.
Save mruv/d942951e2f1a02cb39efc52766f1dcd0 to your computer and use it in GitHub Desktop.
# data source
spring.datasource.url=jdbc:mysql://localhost:3306/DATABASE_NAME?zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.username=DATABASE_USER
spring.datasource.password=DATABASE_PWD
# ddl && hibernate
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.properties.hibernate.connection.driver_class=com.mysql.jdbc.Driver
# server.address=127.0.0.1
# server.port=8080
# server.use-forward-headers=true
# Embedded ActiveMQ Configuration Example
spring.activemq.broker-url=vm://localhost?broker.persistent=false,useShutdownHook=false
# spring.activemq.close-timeout=15000
spring.activemq.in-memory=true
# spring.activemq.non-blocking-redelivery=false
# spring.activemq.password=admin
# spring.activemq.user=admin
# spring.activemq.send-timeout=0
# spring.activemq.packages.trust-all=false
# spring.activemq.packages.trusted=com.memorynotfound
# spring.activemq.pool.block-if-full=true
# spring.activemq.pool.block-if-full-timeout=-1
spring.activemq.pool.enabled=true
spring.activemq.pool.idle-timeout=30000
spring.activemq.pool.max-connections=100
# spring.activemq.pool.maximum-active-session-per-connection=500
spring.activemq.pool.time-between-expiration-check=-1
spring.activemq.pool.use-anonymous-producers=true
# Spring JMS Settings
# spring.jms.jndi-name=
spring.jms.listener.acknowledge-mode=auto
spring.jms.listener.auto-startup=true
spring.jms.listener.concurrency=5
spring.jms.listener.max-concurrency=50
# spring.jms.pub-sub-domain=false
# spring.jms.template.default-destination=empty
# spring.jms.template.delivery-mode=non_persistent
# spring.jms.template.priority=100
# spring.jms.template.qos-enabled=true
# spring.jms.template.receive-timeout=1000
# spring.jms.template.time-to-live=36000
# JACKSON + Time Date
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment