From 85af9acfccf2e944a97557d3e46d143b0e99e2f1 Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期三, 04 九月 2024 16:29:57 +0800 Subject: [PATCH] swagger 配置异常 --- src/main/resources/application.yml | 78 +++++++++++++++++++++++++++++--------- 1 files changed, 59 insertions(+), 19 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e911789..0fe942e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,13 +3,41 @@ servlet: context-path: / spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: org.postgresql.Driver + url: jdbc:postgresql://192.168.11.95:5433/llmdb + username: postgres + password: postgres + jackson: + time-zone: GMT+8 + date-format: yyyy-MM-dd HH:mm:ss + # 鍦扮悊瀹炰綋搴� + geographical: + # Token鍦板潃 + token: 9ce350f238ba44fda10ddfe8b80f8967 + # 璇锋眰鍦板潃 + url: http://106.120.22.26:8013/geo-service/ + # 鑾峰彇瀹炰綋搴撳垪琛� + canview: /entitydb/list/canview + # 鏌ヨ鍥惧眰鏁版嵁锛堟垨鏁伴噺锛� + queryEntity: /entitydbdata/query/entity + # 鑾峰彇key鍞竴鏍囪瘑 + publickey: /setting/publickey + # 瀹炰綋搴撳悕绉� + entityName: 澶фā鍨嬫祴璇曞簱 + # 瀹炰綋搴揹bid + dbid: 3dce04bbab1540b5ae3d147e8503ab9d + # 瀹炰綋搴揹bid + layerId: a61f2f8f-0bf9-422f-86fe-b7b0a30ebad9 + application: name: ollama-ai ai: ollama: base-url: http://127.0.0.1:11434 chat: -# model: yi:9b-chat-v1.5-q4_0 + # model: yi:9b-chat-v1.5-q4_0 model: qwen2:1.5b intent: http://106.120.22.26:5368/intention?message fastgpt: @@ -19,25 +47,37 @@ kc: http://192.168.11.28/api/core/dataset/create kl: http://192.168.11.28/api/core/dataset/list kd: http://192.168.11.28/api/core/dataset/detail -# 鍦扮悊瀹炰綋搴� - geographical: -# Token鍦板潃 - token: 9ce350f238ba44fda10ddfe8b80f8967 -# 璇锋眰鍦板潃 - url: http://106.120.22.26:8013/geo-service/ -# 鑾峰彇瀹炰綋搴撳垪琛� - canview: /entitydb/list/canview -# 鏌ヨ鍥惧眰鏁版嵁锛堟垨鏁伴噺锛� - queryEntity: /entitydbdata/query/entity -# 鑾峰彇key鍞竴鏍囪瘑 - publickey: /setting/publickey -# 瀹炰綋搴撳悕绉� - entityName: 澶фā鍨嬫祴璇曞簱 -# 瀹炰綋搴揹bid - dbid: 3dce04bbab1540b5ae3d147e8503ab9d -# 瀹炰綋搴揹bid - layerId: a61f2f8f-0bf9-422f-86fe-b7b0a30ebad9 +mybatis-plus: + mapper-locations: classpath*:/mapper/**/*.xml + #瀹炰綋鎵弿锛屽涓猵ackage鐢ㄩ�楀彿鎴栬�呭垎鍙峰垎闅� + typeAliasesPackage: com.terra.*.entity + #type-handlers-package: com.terra.peiwang.postgis + global-config: + #鏁版嵁搴撶浉鍏抽厤缃� + db-config: + #涓婚敭绫诲瀷 AUTO:"鏁版嵁搴揑D鑷", INPUT:"鐢ㄦ埛杈撳叆ID", ID_WORKER:"鍏ㄥ眬鍞竴ID (鏁板瓧绫诲瀷鍞竴ID)", UUID:"鍏ㄥ眬鍞竴ID UUID"; + id-type: AUTO + logic-delete-value: -1 + logic-not-delete-value: 0 + banner: false + #鍘熺敓閰嶇疆 + configuration: + map-underscore-to-camel-case: false + cache-enabled: false + + jdbc-type-for-null: 'null' + + # 杩欎釜閰嶇疆浼氬皢鎵ц鐨剆ql鎵撳嵃鍑烘潵锛屽湪寮�鍙戞垨娴嬭瘯鐨勬椂鍊欏彲浠ョ敤 + + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # 杩斿洖绫诲瀷涓篗ap,鏄剧ずnull瀵瑰簲鐨勫瓧娈� + call-setters-on-nulls: true + +pagehelper: + reasonable: true + supportMethodsArguments: true + params: count=countSql -- Gitblit v1.9.3