application.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. server:
  2. port: 8086
  3. # 应用名称
  4. spring:
  5. profiles:
  6. active: dev #开发环境配置文件
  7. # active: test #测试环境配置文件
  8. # active: pro #生产环境配置文件
  9. application:
  10. name: student_portrait
  11. datasource:
  12. # driver-class-name: com.mysql.cj.jdbc.Driver
  13. # url: jdbc:mysql://172.16.20.45:3306/activerecord?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  14. # username: root
  15. # password: Chuanghai_2021.
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://127.0.0.1:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8
  18. username: root
  19. password: root
  20. servlet:
  21. multipart:
  22. enabled: true
  23. file-size-threshold: 0
  24. max-file-size: 10MB
  25. max-request-size: 10MB
  26. #logging:
  27. # # 设置logback.xml位置
  28. # # config: classpath:logs/logback.xml
  29. # # 设置log4j.properties位置
  30. # config:
  31. # classpath: logs/logback.xml
  32. mybatis-plus:
  33. configuration:
  34. # 驼峰命名和底杠命名自动转换
  35. map-underscore-to-camel-case: true
  36. # Mybatis默认简单日志
  37. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  38. # MyBatis 自动映射策略,通过该配置可指定 MyBatis 是否并且如何来自动映射数据表字段与对象的属性,总共有 3 种可选值:
  39. # AutoMappingBehavior.NONE:不启用自动映射
  40. # AutoMappingBehavior.PARTIAL:只对非嵌套的 resultMap 进行自动映射
  41. # AutoMappingBehavior.FULL:对所有的 resultMap 都进行自动映射
  42. auto-mapping-behavior: full
  43. global-config:
  44. db-config:
  45. # MybatisPlus 设置全局主键生成策略:自增
  46. id-type: auto
  47. # 逻辑删除字段名
  48. logic-delete-field: isDeleted
  49. # 逻辑删除字面值:未删除为0
  50. logic-not-delete-value: 0
  51. # 逻辑删除字面值:删除为1
  52. logic-delete-value: 1
  53. #微校相关配置
  54. weixiao:
  55. app_key: DB60250B489345ED
  56. response_type: code
  57. scope: snsapi_sso
  58. ocode: 1015730314
  59. app_secret: 68ED5D4B98DD8817C1558A8FCAF9D1BF
  60. redirect_uri: http://5d519a3d.cpolar.top/
  61. #远程IP端口、接口
  62. decisionEngine:
  63. url:
  64. #百胜人员识别
  65. #product: http://39.108.175.59:9090/device/sync_person
  66. product: http://39.108.175.59:5389/device/sync_person
  67. #二维码的门禁记录服务地址
  68. qrcode: https://chtech.ncjti.edu.cn/access-control/ncjtEntranceGuard/getTrafficRecordViewPageList
  69. #热水使用记录
  70. waterUrl: http://192.168.1.34:8080/HotWaters/waterfindConsume.action
  71. nvr:
  72. nvrip: 172.22.45.25
  73. nvrport: 80
  74. nvruname: admin
  75. nvrpwd: ncjtxy@2021