景德镇旅游小程序【政府】
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

331 lines
10 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. server:
  2. port: 8001
  3. tomcat:
  4. max-swallow-size: -1
  5. error:
  6. include-exception: true
  7. include-stacktrace: ALWAYS
  8. include-message: ALWAYS
  9. servlet:
  10. context-path: /travel-api
  11. compression:
  12. enabled: true
  13. min-response-size: 1024
  14. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  15. management:
  16. endpoints:
  17. web:
  18. exposure:
  19. include: metrics,httptrace
  20. spring:
  21. servlet:
  22. multipart:
  23. max-file-size: 10MB
  24. max-request-size: 10MB
  25. mail:
  26. host: smtp.qq.com
  27. username:
  28. password:
  29. properties:
  30. mail:
  31. smtp:
  32. auth: true
  33. starttls:
  34. enable: true
  35. required: true
  36. ## quartz定时任务,采用数据库方式
  37. quartz:
  38. job-store-type: jdbc
  39. initialize-schema: embedded
  40. #定时任务启动开关,true-开 false-关
  41. auto-startup: true
  42. #启动时更新己存在的Job
  43. overwrite-existing-jobs: true
  44. properties:
  45. org:
  46. quartz:
  47. scheduler:
  48. instanceName: MyScheduler
  49. instanceId: AUTO
  50. jobStore:
  51. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  52. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  53. tablePrefix: QRTZ_
  54. isClustered: true
  55. misfireThreshold: 60000
  56. clusterCheckinInterval: 10000
  57. threadPool:
  58. class: org.quartz.simpl.SimpleThreadPool
  59. threadCount: 10
  60. threadPriority: 5
  61. threadsInheritContextClassLoaderOfInitializingThread: true
  62. #json 时间戳统一转换
  63. jackson:
  64. date-format: yyyy-MM-dd HH:mm:ss
  65. time-zone: GMT+8
  66. jpa:
  67. open-in-view: false
  68. activiti:
  69. check-process-definitions: false
  70. #启用作业执行器
  71. async-executor-activate: false
  72. #启用异步执行器
  73. job-executor-activate: false
  74. aop:
  75. proxy-target-class: true
  76. #配置freemarker
  77. freemarker:
  78. # 设置模板后缀名
  79. suffix: .ftl
  80. # 设置文档类型
  81. content-type: text/html
  82. # 设置页面编码格式
  83. charset: UTF-8
  84. # 设置页面缓存
  85. cache: false
  86. prefer-file-system-access: false
  87. # 设置ftl文件路径
  88. template-loader-path:
  89. - classpath:/templates
  90. # 设置静态文件路径,js,css等
  91. mvc:
  92. static-path-pattern: /**
  93. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  94. pathmatch:
  95. matching-strategy: ant_path_matcher
  96. resource:
  97. static-locations: classpath:/static/,classpath:/public/
  98. autoconfigure:
  99. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  100. datasource:
  101. druid:
  102. stat-view-servlet:
  103. enabled: true
  104. loginUsername: admin
  105. loginPassword: 123456
  106. allow:
  107. web-stat-filter:
  108. enabled: true
  109. dynamic:
  110. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  111. # 连接池的配置信息
  112. # 初始化大小,最小,最大
  113. initial-size: 5
  114. min-idle: 5
  115. maxActive: 20
  116. # 配置获取连接等待超时的时间
  117. maxWait: 60000
  118. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  119. timeBetweenEvictionRunsMillis: 60000
  120. # 配置一个连接在池中最小生存的时间,单位是毫秒
  121. minEvictableIdleTimeMillis: 300000
  122. validationQuery: SELECT 1
  123. testWhileIdle: true
  124. testOnBorrow: false
  125. testOnReturn: false
  126. # 打开PSCache,并且指定每个连接上PSCache的大小
  127. poolPreparedStatements: true
  128. maxPoolPreparedStatementPerConnectionSize: 20
  129. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  130. filters: stat,wall,slf4j
  131. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  132. # connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  133. datasource:
  134. master:
  135. url: jdbc:mysql://49.232.135.100:3306/travel?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false
  136. username: root
  137. password: Jdz.123456
  138. driver-class-name: com.mysql.cj.jdbc.Driver
  139. # 多数据源配置
  140. #multi-datasource1:
  141. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  142. #username: root
  143. #password: root
  144. #driver-class-name: com.mysql.cj.jdbc.Driver
  145. #redis 配置
  146. redis:
  147. database: 4
  148. host: 49.232.135.100
  149. lettuce:
  150. pool:
  151. max-active: -1 #最大连接数据库连接数,设 -1 为没有限制
  152. max-idle: 0 #最大等待连接中的数量,设 0 为没有限制
  153. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  154. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  155. shutdown-timeout: 1000ms
  156. password: 'Jdz.123456'
  157. port: 6379
  158. #mybatis plus 设置
  159. mybatis-plus:
  160. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  161. global-config:
  162. # 关闭MP3.0自带的banner
  163. banner: false
  164. db-config:
  165. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  166. id-type: ASSIGN_ID
  167. # 默认数据库表下划线命名
  168. table-underline: true
  169. configuration:
  170. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  171. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  172. # 返回类型为Map,显示null对应的字段
  173. call-setters-on-nulls: true
  174. #jeecg专用配置
  175. minidao :
  176. base-package: org.jeecg.modules.jmreport.*
  177. jeecg :
  178. # 是否启用安全模式
  179. safeMode: false
  180. # 签名密钥串(前后端要一致,正式发布请自行修改)
  181. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  182. # 本地:local\Minio:minio\阿里云:alioss
  183. uploadType: alioss
  184. path :
  185. #文件上传根目录 设置
  186. upload: /opt/upFiles
  187. #webapp文件路径
  188. webapp: /opt/webapp
  189. shiro:
  190. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
  191. #阿里云oss存储和大鱼短信秘钥配置
  192. oss:
  193. accessKey: LTAI5t6zzrU86ADa5wW6yFrp
  194. secretKey: 2BddrzvyjiACTIDeuS2cCqrqAQuwco
  195. endpoint: oss-cn-shanghai.aliyuncs.com
  196. bucketName: cywhyc
  197. staticDomain: https://img.cywhyc.com.cn
  198. # ElasticSearch 6设置
  199. elasticsearch:
  200. cluster-name: jeecg-ES
  201. cluster-nodes: 127.0.0.1:9200
  202. check-enabled: false
  203. # 表单设计器配置
  204. desform:
  205. # 主题颜色(仅支持 16进制颜色代码)
  206. theme-color: "#1890ff"
  207. # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置)
  208. upload-type: system
  209. map:
  210. # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
  211. baidu: ??
  212. # 在线预览文件服务器地址配置
  213. file-view-domain: 127.0.0.1:8012
  214. # minio文件上传
  215. minio:
  216. minio_url: http://minio.jeecg.com
  217. minio_name: ??
  218. minio_pass: ??
  219. bucketName: otatest
  220. #大屏报表参数设置
  221. jmreport:
  222. mode: dev
  223. #数据字典是否进行saas数据隔离,自己看自己的字典
  224. saas: false
  225. #是否需要校验token
  226. is_verify_token: true
  227. #必须校验方法
  228. verify_methods: remove,delete,save,add,update
  229. #自定义项目前缀
  230. customPrePath:
  231. pageSize:
  232. - 10
  233. - 20
  234. - 30
  235. - 40
  236. #Wps在线文档
  237. wps:
  238. domain: https://wwo.wps.cn/office/
  239. appid: ??
  240. appsecret: ??
  241. #xxl-job配置
  242. xxljob:
  243. enabled: false
  244. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  245. appname: ${spring.application.name}
  246. accessToken: ''
  247. address: 127.0.0.1:30007
  248. ip: 127.0.0.1
  249. port: 30007
  250. logPath: logs/jeecg/job/jobhandler/
  251. logRetentionDays: 30
  252. route:
  253. config:
  254. data-id: jeecg-gateway-router
  255. group: DEFAULT_GROUP
  256. #自定义路由配置 yml nacos database
  257. data-type: database
  258. #分布式锁配置
  259. redisson:
  260. address: 127.0.0.1:6379
  261. password:
  262. type: STANDALONE
  263. enabled: true
  264. #cas单点登录
  265. cas:
  266. prefixUrl: http://cas.example.org:8443/cas
  267. #Mybatis输出sql日志
  268. logging:
  269. level:
  270. org.jeecg.modules.system.mapper : info
  271. #swagger
  272. knife4j:
  273. #开启增强配置
  274. enable: true
  275. #开启生产环境屏蔽
  276. production: false
  277. basic:
  278. enable: false
  279. username: jeecg
  280. password: jeecg1314
  281. #第三方登录
  282. justauth:
  283. enabled: true
  284. type:
  285. GITHUB:
  286. client-id: ??
  287. client-secret: ??
  288. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  289. WECHAT_ENTERPRISE:
  290. client-id: ??
  291. client-secret: ??
  292. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  293. agent-id: ??
  294. DINGTALK:
  295. client-id: ??
  296. client-secret: ??
  297. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  298. WECHAT_OPEN:
  299. client-id: ??
  300. client-secret: ??
  301. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  302. cache:
  303. type: default
  304. prefix: 'demo::'
  305. timeout: 1h
  306. #第三方APP对接
  307. third-app:
  308. enabled: false
  309. type:
  310. #企业微信
  311. WECHAT_ENTERPRISE:
  312. enabled: false
  313. #CORP_ID
  314. client-id: ??
  315. #SECRET
  316. client-secret: ??
  317. #自建应用id
  318. agent-id: ??
  319. #自建应用秘钥(新版企微需要配置)
  320. # agent-app-secret: ??
  321. #钉钉
  322. DINGTALK:
  323. enabled: false
  324. # appKey
  325. client-id: ??
  326. # appSecret
  327. client-secret: ??
  328. agent-id: ??