123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- # 项目相关配置
- eco:
- # 名称
- name: eco-boot
- # # 版本
- # version: ${revision}
- # # 版权年份
- # copyrightYear: 2025 ~ 2028
- # Spring配置
- spring:
- application:
- name: ${eco.name}
- profiles:
- active: @profiles.active@
- mvc:
- format:
- date-time: yyyy-MM-dd HH:mm:ss
- servlet:
- load-on-startup: 1
- jackson:
- time-zone: GMT+8
- date-format: yyyy-MM-dd HH:mm:ss
- serialization:
- indent-output: false
- fail-on-empty-beans: false
- write-dates-as-timestamps: false
- deserialization:
- fail-on-unknown-properties: false
- servlet:
- multipart:
- max-file-size: 100MB
- max-request-size: 1000MB
- threads:
- virtual:
- enabled: true
- # 开发环境配置
- server:
- # 服务器的HTTP端口,默认为8080
- port: 9040
- servlet:
- # 应用的访问路径
- context-path: /
- # MyBatisFlex公共配置
- mybatis-flex:
- # 搜索指定包别名
- type-aliases-package: org.eco.vip.**.domain.**
- # 不支持多包, 如有需要可在注解配置 或 提升扫包等级:com.**.**.mapper
- mapper-package: org.eco.vip.**.mapper
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapper-locations: classpath*:mapper/**/*Mapper.xml
- configuration:
- # 自动驼峰命名规则(camel case)映射
- map_underscore_to_camel_case: true
- # MyBatis 自动映射策略
- auto_mapping_behavior: FULL
- # MyBatis 自动映射时未知列或未知属性处理策
- # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
- auto_mapping_unknown_column_behavior: NONE
- # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
- # 关闭日志记录 org.apache.ibatis.logging.nologging.NoLoggingImpl
- # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
- #log_impl: org.apache.ibatis.logging.stdout.StdOutImpl
- logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
- cacheEnabled: true
- global-config:
- # 逻辑删除存在0
- normal-value-of-logic-delete: 0
- # 逻辑已删除1
- deleted-value-of-logic-delete: 1
- # 默认的逻辑删除字段
- logic-delete-column: del_flag
- # 默认的多租户字段
- tenant-column: tenant_id
- # 默认的乐观锁字段
- version-column: version
- # 是否控制台打印 MyBatis-Flex 的 LOGO 及版本号
- print-banner: false
- # 全局的 ID 生成策略配置:雪花算法:snowFlakeId、独创的 FlexID 算法:flexId、UUIDKeyGenerator:uuid
- key-config:
- key-type: Generator
- value: flexId
- # easy-trans 配置
- easy-trans:
- # 字典缓存是否放到redis中 做二级缓存,微服务模式推荐开启
- dict-use-redis: false
- # 开启redis支持 微服务模式推荐使用redis
- is-enable-redis: false
- # 启用全局翻译(拦截所有responseBody进行自动翻译),如果关闭需要手动调用翻译方法或者方法加注解,具体看文档
- is-enable-global: true
- # 启平铺模式(transMap的key平铺到和vo一个级别)
- is-enable-tile: true
- # 默认为true 如果前期先单体跑,后期可能改为springcloud微服务,可以先设置为false,后期设置为true,设置为false RPC翻译会走SIMPLE的逻辑
- is-enable-cloud: false
- # 日志配置
- logging:
- level:
- org.eco.vip: @logging.level@
- org.springframework: warn
- # com.zaxxer.hikari: DEBUG
- com.zaxxer.hikari.pool.HikariPool: ERROR
- com.zaxxer.hikari.HikariDataSource: ERROR
- org.mybatis.spring.mapper: error
- org.springframework.context.support.PostProcessorRegistrationDelegate: error
- --- #
- deepseek:
- api-key: local-ollama # 必填项:你的 API 密钥
- model: qwen2.5:3b
- base-url: http://127.0.0.1:11434/v1 # 可选,默认为官方 API 地址
- # 向量模型链接信息
- embedding:
- api-key: ${deepseek.api-key}
- base-url: ${deepseek.base-url}
- model: bge-m3:latest
- --- #ai-表名映射
- table:
- mappings:
- - pattern: "部门表|部门"
- table_name: "sys_dept"
- - pattern: "用户|人员|姓名|账号|性别"
- table_name: "sys_user"
- - pattern: "故障统计|故障现象|型号|故障件|系统|故障"
- table_name: "als_fault_statistics_t"
|