1 line
3.0 KiB
JSON
1 line
3.0 KiB
JSON
{"repo": "chengzhen2/bishe", "files": {"springboot/src/main/resources/application.yml": {"a46b9ff3e29f2f449e0001a7606df3acd802cfab": {"t": 1785746956.5474331, "n": 2532, "h": "dfa209339dfd31c4", "c": "spring:\n application:\n name: springboot\n \n # 数据源配置\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/heritage_db?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true\n username: root\n password: 1234\n \n # 安全配置\n security:\n user:\n name: admin\n password: admin\n main:\n allow-bean-definition-overriding: true\n # 邮件配置\n mail:\n host: smtp.qq.com\n username: 2841463013@qq.com\n password: nskertmawxweddfi\n default-encoding: utf-8\n port: 587\n properties:\n mail:\n debug: true\n smtp:\n auth: true\n ssl:\n enable: true\n protocols: TLSv1.2\n socketFactory:\n class: javax.net.ssl.SSLSocketFactory\n port: 465\n \n # Web配置\n mvc:\n static-path-pattern: /** # 允许根路径访问静态资源\n web:\n resources:\n static-locations: classpath:/static/, file:./files/ # 添加files目录\n \n # 文件上传配置\n servlet:\n multipart:\n enabled: true\n max-file-size: 500MB\n max-request-size: 500MB\n \n # JSON配置\n jackson:\n default-property-inclusion: non_empty\n #注意事项这里需要配置自己的apikey,访问硅基流动官网注册:https://siliconflow.cn/\n # Spring AI配置\n ai:\n openai:\n api-key: sk-dilssjysdznzdmwajhavdcgssoejcizzrjbrsxwojbxfaejp\n base-url: https://api.siliconflow.cn\n chat:\n options:\n model: deepseek-ai/DeepSeek-V3\n temperature: 0.7\n completions-path: /v1/chat/completions\n\n# 服务器配置\nserver:\n port: 8889\n servlet:\n context-path: /\n\n# MyBatis-Plus配置\nmybatis-plus:\n mapper-locations: classpath:/mapper/*.xml\n configuration:\n map-underscore-to-camel-case: true\n log-impl: org.apache.ibatis.logging.stdout.StdOutImpl\n\n# SpringDoc配置\nspringdoc:\n swagger-ui:\n path: /swagger-ui.html\n tags-sorter: alpha\n operations-sorter: alpha\n enabled: true\n api-docs:\n path: /v3/api-docs\n enabled: true\n enable-spring-security: false\n paths-to-match: /**\n packages-to-scan: org.example.springboot\n\n# Knife4j配置\nknife4j:\n enable: true\n setting:\n language: zh_cn\n basic:\n enable: true\n username: admin\n password: admin\n\n# JWT配置\njwt:\n secret: MySecretKeyForJWT2025!@#$%^&*()_+SecureKeyHere\n expiration: 86400000 # 24小时(毫秒)\n refresh-expiration: 604800000 # 7天(毫秒)\n header: Authorization # token头部名称\n token-prefix: \"Bearer \" # token前缀\n\n\n# 文件管理配置\nfile:\n upload:\n path: ./files\n maxSize: 524288000 # 500MB (500 * 1024 * 1024)\n"}}}} |