application.properties 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #spring.profiles.active=dev
  2. #application
  3. application.title=MaxKey
  4. application.name=MaxKey-Mgt
  5. application.formatted-version=v1.5.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