application.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. server:
  2. port: 8084
  3. #数据源配置
  4. spring:
  5. datasource:
  6. # url: jdbc:mysql://127.0.0.1:3306/repairs?characterEncoding=utf-8&serverTimezone=UTC&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true
  7. url: jdbc:mysql://192.168.1.41:3306/repairs?characterEncoding=utf-8&serverTimezone=UTC&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true
  8. driver-class-name: com.mysql.jdbc.Driver
  9. # mysql6以上需要使用下面的连接配置
  10. # driver-class-name: com.mysql.cj.jdbc.Driver
  11. username: root
  12. password: root
  13. #spring security 安全框架
  14. security:
  15. user:
  16. name: admin
  17. password: 123456
  18. #数据库方言
  19. jpa:
  20. database-platform: org.hibernate.dialect.MySQLDialect
  21. #mybatis配置
  22. mybatis:
  23. mapper-locations: classpath:mapper/**/*.xml
  24. # 图片地址
  25. img:
  26. # 图片保存地址
  27. #saveLocation: E:\devImg\repair\
  28. saveLocation: /usr/local/nginx-1.18.0/html/repair_reporting_system/repair_image/
  29. # 图片预览地址
  30. #showHost: http://10.244.137.3/dev-img/
  31. #show-host: http://192.168.31.115/dev-img/
  32. show-host: http://192.168.1.41/dev-img/
  33. #微校相关配置
  34. weixiao:
  35. app_key: EE28EE2C93296F4E
  36. app_secret: 5071958561AA629530AAA31503088330
  37. ocode: 1015730314
  38. # serverUrl: http://10.244.137.3:8084
  39. serverUrl: http://192.168.1.41:8084
  40. # serverUrl: http://87hhvi.natappfree.cc
  41. title: 寝室维修通知
  42. content: 同学你好,你的寝室报修单已被维修师傅接单,维修师傅将于半小时后上门维修;请合理安排时间,谢谢合作。
  43. sender: 寝室管理办公室