application.properties 930 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #===datasource start===
  2. spring.datasource.url=jdbc:mysql://localhost:3306/mall
  3. spring.datasource.username=root
  4. spring.datasource.password=root
  5. #===datasource end===
  6. #===mybatis start===
  7. mybatis.mapper-locations=classpath:dao/*.xml,classpath*:com/**/mapper/*.xml
  8. #===mybatis end===
  9. #===log start===
  10. #日志配置DEBUG,INFO,WARN,ERROR
  11. logging.level.root=info
  12. #单独配置日志级别
  13. logging.level.com.macro.mall=debug
  14. #配置日志生成路径
  15. #logging.path=/var/logs
  16. #配置日志文件名称
  17. #logging.file=demo_log.log
  18. #===log end===
  19. #===thymeleaf start===
  20. spring.thymeleaf.mode=HTML5
  21. spring.thymeleaf.encoding=UTF-8
  22. spring.thymeleaf.content-type=text/html
  23. #开发时关闭缓存,不然没法看到实时页面
  24. spring.thymeleaf.cache=false
  25. #===thymeleaf end==
  26. #===JWT start===
  27. #JWT存储的请求头
  28. jwt.tokenHeader=Authorization
  29. #JWT加解密使用的密钥
  30. jwt.secret=mySecret
  31. #JWT的超期限时间(60*60*24)
  32. jwt.expiration=604800
  33. #JWT负载中拿到开头
  34. jwt.tokenHead=Bearer
  35. #===JWT end===