# 项目相关配置 mh: # 名称 name: nfxy_prod # 版本 version: 1.0.0 # 版权年份 copyrightYear: 2025 # 文件路径 示例( Windows配置D:/mh/uploadPath,Linux配置 /home/mh/uploadPath) profile: E:/mh_data/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数字计算 char 字符验证 captchaType: math server: port: 8762 #8761创新、8762广商、8763华厦、广州理工,华粤8762,广外8764,北师大(珠海)8762 spring: application: name: user-service datasource: name: druidDataSource type: com.alibaba.druid.pool.DruidDataSource druid: #添加allowMultiQueries=true 在批量更新时才不会出错 # url: jdbc:sqlserver://192.168.1.108:2012;DatabaseName=FSBG;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: sa # password: mh@803 ## url: jdbc:sqlserver://120.25.220.177:32012;DatabaseName=M_CHWS;allowMultiQueries=true # #阿里云服务器-广州理工 # url: jdbc:sqlserver://111.230.50.186:32012;DatabaseName=CHWS;allowMultiQueries=true;encrypt=false # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: test # password: minghan123456@ # #华厦云服务器 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=CHWS;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws # password: minghan123456@ #创新服务器 # url: jdbc:sqlserver://106.55.173.225:57238;DatabaseName=chws_chx;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_gsh # password: Mhtech@803 #广商服务器 # url: jdbc:sqlserver://175.178.153.91:8033;DatabaseName=chws_gsh;allowMultiQueries=true;encrypt=false # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_gsh # password: Mhtech@803gsh #本机 # url: jdbc:sqlserver://127.0.0.1:9956;DatabaseName=CHWS;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: sa # password: mh@803 #家里电脑 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=CHWS;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: sa # password: mh@803 #华粤服务器 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=chws_hy;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_hy # password: huayue@803 #广外本地服务器 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=chws_gw;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_gw # password: chws_gw@803 # url: jdbc:sqlserver://111.230.50.186:32012;DatabaseName=chws_gw;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_gw # password: chws_gw@803 # # 华软江门 # url: jdbc:sqlserver://127.0.0.1:57238;DatabaseName=chws_jm;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_jm # password: Mhtech@803 # # 珠海北师大 # url: jdbc:sqlserver://127.0.0.1:8033;DatabaseName=chws_bsdz;allowMultiQueries=true # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # username: chws_bsdz # password: Mhtech@803803 #南方学院 url: jdbc:sqlserver://175.178.153.91:8033;DatabaseName=chws_nfxy;allowMultiQueries=true;encrypt=false driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver username: chws_nfxy password: minghan@123456 filters: stat,wall,config max-active: 100 initial-size: 1 max-wait: 60000 min-idle: 1 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: select 'x' test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-open-prepared-statements: 50 max-pool-prepared-statement-per-connection-size: 50 cloud: config: fail-fast: false # 是否启用配置中心 enabled: ${SPRING_CLOUD_CONFIG_ENABLED:false} # # 配置中心地址 # uri: ${SPRING_CLOUD_CONFIG_URI:http://localhost:8763} # redis: # database: 0 # host: 127.0.0.1 # port: 6379 # password: 123456 # timeout: 3000 #链接超时时间 # lettuce: # pool: # max-active: 8 #连接池最大连接数(使用负值没有限制) # max-wait: -1 #最大等待时间,使用负值没有限制 # max-idle: 8 #最大空闲连接,使用负值没有限制 # min-idle: 0 #默认最小空闲连接 默认0 # redis配置 # cloud: # config: # uri: http://localhost:8769 # fail-fast: true # profiles: # active: pro # consul: # host: localhost # port: 8500 # discovery: # service-name: ${spring.application.name} # 开放健康检查接口 #management: # endpoints: # web: # exposure: # include: "*" # endpoint: # health: # show-details: ALWAYS #files: # path: ${file-path:d:/files} logging: level: com: mh: user: mapper: DEBUG file: max-size: 30 path: logs/${spring.application.name} ##软件最后更新日期20230111 amap: key: 984603bf28ef94ac78765a3ea27a6c26 mqtt: enabled: true mqttSpring: # BASIC parameters are required. BASIC: protocol: MQTT host: mqtt.mhito.net port: 1883 username: chws_nfxy password: mhtech@803 client-id: chws_nfxy_mqtt_prod # If the protocol is ws/wss, this value is required. path: # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",". inbound-topic: chws_nfxy_mqtt_prod/read/events_upload/devices # 此部分是提供给后端生成token返回给前端,让前端使用websocket方式去和MQTT实现交互的,笔者此文的案例中并没有去实现 # 无人机远程控制模式(drone remote control) DRC: protocol: WS host: mqtt.mhito.net port: 8083 path: /mqtt control: topic: mh_control/events_control/devices