application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # 项目相关配置
  2. eco:
  3. # 名称
  4. name: eco-boot
  5. # # 版本
  6. # version: ${revision}
  7. # # 版权年份
  8. # copyrightYear: 2025 ~ 2028
  9. # Spring配置
  10. spring:
  11. application:
  12. name: ${eco.name}
  13. profiles:
  14. active: @profiles.active@
  15. mvc:
  16. format:
  17. date-time: yyyy-MM-dd HH:mm:ss
  18. servlet:
  19. load-on-startup: 1
  20. jackson:
  21. time-zone: GMT+8
  22. date-format: yyyy-MM-dd HH:mm:ss
  23. serialization:
  24. indent-output: false
  25. fail-on-empty-beans: false
  26. write-dates-as-timestamps: false
  27. deserialization:
  28. fail-on-unknown-properties: false
  29. servlet:
  30. multipart:
  31. max-file-size: 100MB
  32. max-request-size: 1000MB
  33. threads:
  34. virtual:
  35. enabled: true
  36. # 开发环境配置
  37. server:
  38. # 服务器的HTTP端口,默认为8080
  39. port: 9040
  40. servlet:
  41. # 应用的访问路径
  42. context-path: /
  43. # MyBatisFlex公共配置
  44. mybatis-flex:
  45. # 搜索指定包别名
  46. type-aliases-package: org.eco.vip.**.domain.**
  47. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级:com.**.**.mapper
  48. mapper-package: org.eco.vip.**.mapper
  49. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  50. mapper-locations: classpath*:mapper/**/*Mapper.xml
  51. configuration:
  52. # 自动驼峰命名规则(camel case)映射
  53. map_underscore_to_camel_case: true
  54. # MyBatis 自动映射策略
  55. auto_mapping_behavior: FULL
  56. # MyBatis 自动映射时未知列或未知属性处理策
  57. # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
  58. auto_mapping_unknown_column_behavior: NONE
  59. # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
  60. # 关闭日志记录 org.apache.ibatis.logging.nologging.NoLoggingImpl
  61. # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
  62. #log_impl: org.apache.ibatis.logging.stdout.StdOutImpl
  63. logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  64. cacheEnabled: true
  65. global-config:
  66. # 逻辑删除存在0
  67. normal-value-of-logic-delete: 0
  68. # 逻辑已删除1
  69. deleted-value-of-logic-delete: 1
  70. # 默认的逻辑删除字段
  71. logic-delete-column: del_flag
  72. # 默认的多租户字段
  73. tenant-column: tenant_id
  74. # 默认的乐观锁字段
  75. version-column: version
  76. # 是否控制台打印 MyBatis-Flex 的 LOGO 及版本号
  77. print-banner: false
  78. # 全局的 ID 生成策略配置:雪花算法:snowFlakeId、独创的 FlexID 算法:flexId、UUIDKeyGenerator:uuid
  79. key-config:
  80. key-type: Generator
  81. value: flexId
  82. # easy-trans 配置
  83. easy-trans:
  84. # 字典缓存是否放到redis中 做二级缓存,微服务模式推荐开启
  85. dict-use-redis: false
  86. # 开启redis支持 微服务模式推荐使用redis
  87. is-enable-redis: false
  88. # 启用全局翻译(拦截所有responseBody进行自动翻译),如果关闭需要手动调用翻译方法或者方法加注解,具体看文档
  89. is-enable-global: true
  90. # 启平铺模式(transMap的key平铺到和vo一个级别)
  91. is-enable-tile: true
  92. # 默认为true 如果前期先单体跑,后期可能改为springcloud微服务,可以先设置为false,后期设置为true,设置为false RPC翻译会走SIMPLE的逻辑
  93. is-enable-cloud: false
  94. # 日志配置
  95. logging:
  96. level:
  97. org.eco.vip: @logging.level@
  98. org.springframework: warn
  99. # com.zaxxer.hikari: DEBUG
  100. com.zaxxer.hikari.pool.HikariPool: ERROR
  101. com.zaxxer.hikari.HikariDataSource: ERROR
  102. org.mybatis.spring.mapper: error
  103. org.springframework.context.support.PostProcessorRegistrationDelegate: error
  104. --- #
  105. deepseek:
  106. api-key: local-ollama # 必填项:你的 API 密钥
  107. model: qwen2.5:3b
  108. base-url: http://127.0.0.1:11434/v1 # 可选,默认为官方 API 地址
  109. # 向量模型链接信息
  110. embedding:
  111. api-key: ${deepseek.api-key}
  112. base-url: ${deepseek.base-url}
  113. model: bge-m3:latest
  114. --- #ai-表名映射
  115. table:
  116. mappings:
  117. - pattern: "部门表|部门"
  118. table_name: "sys_dept"
  119. - pattern: "用户|人员|姓名|账号|性别"
  120. table_name: "sys_user"
  121. - pattern: "故障统计|故障现象|型号|故障件|系统|故障"
  122. table_name: "als_fault_statistics_t"