application.properties 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #spring.profiles.active=dev
  2. #application
  3. application.title=MaxKey
  4. application.name=MaxKey-Mgt
  5. application.formatted-version=v2.0.0 GA
  6. #server config
  7. #server port
  8. server.port=9521
  9. #web app context path
  10. server.servlet.context-path=/maxkey-mgt
  11. spring.servlet.multipart.enabled=true
  12. spring.servlet.multipart.max-file-size=4194304
  13. #server.servlet.encoding.charset.from=
  14. #server.servlet.encoding.charset=
  15. #server.servlet.encoding.enabled=
  16. #server.servlet.encoding.force=
  17. #datasource
  18. spring.datasource.username=root
  19. spring.datasource.password=maxkey
  20. spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8
  21. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  22. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  23. #mybatis
  24. mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
  25. mybatis.mapper-locations=classpath*:/org/maxkey/dao/persistence/xml/mysql/*.xml
  26. #redis
  27. spring.redis.host=127.0.0.1
  28. spring.redis.port=6379
  29. spring.redis.password=password
  30. spring.redis.timeout=10000
  31. spring.redis.jedis.pool.max-wait=1000
  32. spring.redis.jedis.pool.max-idle=200
  33. spring.redis.lettuce.pool.max-active=-1
  34. spring.redis.lettuce.pool.min-idle=0
  35. #mail
  36. spring.mail.default-encoding=utf-8
  37. spring.mail.host=smtp.163.com
  38. spring.mail.port=465
  39. spring.mail.username=maxkey@163.com
  40. spring.mail.password=password
  41. spring.mail.protocol=smtp
  42. spring.mail.properties.ssl=true
  43. spring.mail.properties.sender=maxkey@163.com
  44. #freemarker
  45. spring.freemarker.template-loader-path=classpath:/templates/views
  46. spring.freemarker.cache=false
  47. spring.freemarker.charset=UTF-8
  48. spring.freemarker.check-template-location=true
  49. spring.freemarker.content-type=text/html
  50. spring.freemarker.expose-request-attributes=false
  51. spring.freemarker.expose-session-attributes=false
  52. spring.freemarker.request-context-attribute=request
  53. spring.freemarker.suffix=.ftl
  54. #spring.freemarker.settings.classic_compatible=true
  55. #static resources
  56. spring.mvc.static-path-pattern=/static/**
  57. spring.messages.basename=classpath:messages/message
  58. spring.messages.encoding=UTF-8
  59. #main
  60. spring.main.banner-mode=log
  61. spring.main.allow-bean-definition-overriding=true
  62. ###########【Kafka集群】###########
  63. spring.kafka.bootstrap-servers=localhost:9092
  64. ###########【初始化生产者配置】###########
  65. # 重试次数
  66. spring.kafka.producer.retries=0
  67. # 应答级别:多少个分区副本备份完成时向生产者发送ack确认(可选0、1、all/-1)
  68. spring.kafka.producer.acks=1
  69. # 批量大小
  70. spring.kafka.producer.batch-size=16384
  71. # 提交延时
  72. spring.kafka.producer.properties.linger.ms=0
  73. # 当生产端积累的消息达到batch-size或接收到消息linger.ms后,生产者就会将消息提交给kafka
  74. # linger.ms为0表示每接收到一条消息就提交给kafka,这时候batch-size其实就没用了
  75. # 生产端缓冲区大小
  76. spring.kafka.producer.buffer-memory = 33554432
  77. # Kafka提供的序列化和反序列化类
  78. spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
  79. spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
  80. # 自定义分区器
  81. # spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner