| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #spring.profiles.active=dev
- #application
- application.title=MaxKey
- application.name=MaxKey-Mgt
- application.formatted-version=v2.0.0 GA
- #server config
- #server port
- server.port=9521
- #web app context path
- server.servlet.context-path=/maxkey-mgt
- spring.servlet.multipart.enabled=true
- spring.servlet.multipart.max-file-size=4194304
- #server.servlet.encoding.charset.from=
- #server.servlet.encoding.charset=
- #server.servlet.encoding.enabled=
- #server.servlet.encoding.force=
- #datasource
- spring.datasource.username=root
- spring.datasource.password=maxkey
- spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8
- spring.datasource.driver-class-name=com.mysql.jdbc.Driver
- spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
- #mybatis
- mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
- mybatis.mapper-locations=classpath*:/org/maxkey/dao/persistence/xml/mysql/*.xml
- #redis
- spring.redis.host=127.0.0.1
- spring.redis.port=6379
- spring.redis.password=password
- spring.redis.timeout=10000
- spring.redis.jedis.pool.max-wait=1000
- spring.redis.jedis.pool.max-idle=200
- spring.redis.lettuce.pool.max-active=-1
- spring.redis.lettuce.pool.min-idle=0
- #mail
- spring.mail.default-encoding=utf-8
- spring.mail.host=smtp.163.com
- spring.mail.port=465
- spring.mail.username=maxkey@163.com
- spring.mail.password=password
- spring.mail.protocol=smtp
- spring.mail.properties.ssl=true
- spring.mail.properties.sender=maxkey@163.com
- #freemarker
- spring.freemarker.template-loader-path=classpath:/templates/views
- spring.freemarker.cache=false
- spring.freemarker.charset=UTF-8
- spring.freemarker.check-template-location=true
- spring.freemarker.content-type=text/html
- spring.freemarker.expose-request-attributes=false
- spring.freemarker.expose-session-attributes=false
- spring.freemarker.request-context-attribute=request
- spring.freemarker.suffix=.ftl
- #spring.freemarker.settings.classic_compatible=true
- #static resources
- spring.mvc.static-path-pattern=/static/**
- spring.messages.basename=classpath:messages/message
- spring.messages.encoding=UTF-8
- #main
- spring.main.banner-mode=log
- spring.main.allow-bean-definition-overriding=true
- ###########【Kafka集群】###########
- spring.kafka.bootstrap-servers=localhost:9092
- ###########【初始化生产者配置】###########
- # 重试次数
- spring.kafka.producer.retries=0
- # 应答级别:多少个分区副本备份完成时向生产者发送ack确认(可选0、1、all/-1)
- spring.kafka.producer.acks=1
- # 批量大小
- spring.kafka.producer.batch-size=16384
- # 提交延时
- spring.kafka.producer.properties.linger.ms=0
- # 当生产端积累的消息达到batch-size或接收到消息linger.ms后,生产者就会将消息提交给kafka
- # linger.ms为0表示每接收到一条消息就提交给kafka,这时候batch-size其实就没用了
- # 生产端缓冲区大小
- spring.kafka.producer.buffer-memory = 33554432
- # Kafka提供的序列化和反序列化类
- spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
- spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
- # 自定义分区器
- # spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
|