application.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. # 项目相关配置
  2. zhongzheng:
  3. # 名称
  4. name: zhongzheng
  5. # 版本
  6. version: 3.4.0
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径,使用jvm系统变量,兼容windows和linux;
  12. profile: ${user.dir}/zhongzheng/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. captcha:
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: math
  18. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  19. captchaCategory: circle
  20. # 数字验证码位数
  21. captchaNumberLength: 1
  22. # 字符验证码长度
  23. captchaCharLength: 4
  24. # 开发环境配置
  25. server:
  26. # 服务器的HTTP端口,默认为8080
  27. port: 5030
  28. servlet:
  29. # 应用的访问路径
  30. context-path: /
  31. # undertow 配置
  32. undertow:
  33. # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
  34. max-http-post-size: -1
  35. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  36. # 每块buffer的空间大小,越小的空间被利用越充分
  37. buffer-size: 512
  38. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  39. io-threads: 8
  40. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  41. worker-threads: 256
  42. # 是否分配的直接内存
  43. direct-buffers: true
  44. # # tomcat 配置
  45. # tomcat:
  46. # # tomcat的URI编码
  47. # uri-encoding: UTF-8
  48. # # tomcat最大线程数,默认为200
  49. # max-threads: 500
  50. # # Tomcat启动初始化的线程数,默认值25
  51. # min-spare-threads: 30
  52. # 日志配置
  53. logging:
  54. level:
  55. com.zhongzheng: @logging.level@
  56. org.springframework: warn
  57. config: classpath:logback.xml
  58. # Spring配置
  59. spring:
  60. mvc:
  61. async:
  62. request-timeout: 30000
  63. main:
  64. allow-bean-definition-overriding: true
  65. # 资源信息
  66. messages:
  67. # 国际化资源文件路径
  68. basename: i18n/messages
  69. profiles:
  70. active: @profiles.active@
  71. # 文件上传
  72. servlet:
  73. multipart:
  74. # 单个文件大小
  75. max-file-size: 1024MB
  76. # 设置总上传的文件大小
  77. max-request-size: 1024MB
  78. # 服务模块
  79. devtools:
  80. restart:
  81. # 热部署开关
  82. enabled: true
  83. application:
  84. name: zz_edu
  85. boot:
  86. admin:
  87. # Spring Boot Admin Client 客户端的相关配置
  88. client:
  89. # 设置 Spring Boot Admin Server 地址
  90. url: http://localhost:${server.port}${spring.boot.admin.context-path}
  91. instance:
  92. prefer-ip: true # 注册实例时,优先使用 IP
  93. # Spring Boot Admin Server 服务端的相关配置
  94. context-path: /admin # 配置 Spring
  95. # Actuator 监控端点的配置项
  96. management:
  97. endpoints:
  98. web:
  99. # Actuator 提供的 API 接口的根目录。默认为 /actuator
  100. base-path: /actuator
  101. exposure:
  102. # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
  103. include: '*'
  104. endpoint:
  105. logfile:
  106. external-file: ./logs/sys-console.log
  107. # token配置
  108. token:
  109. # 令牌自定义标识
  110. header: AuthorizationToken
  111. # 令牌密钥
  112. secret: abcdefghijklmnopqrstuvwxyz
  113. # 令牌有效期(默认30分钟)
  114. expireTime: 360
  115. # MyBatis配置
  116. # https://baomidou.com/config/
  117. mybatis-plus:
  118. # 对应的 XML 文件位置
  119. mapperLocations: classpath*:mapper/**/*Mapper.xml
  120. # 实体扫描,多个package用逗号或者分号分隔
  121. typeAliasesPackage: com.zhongzheng.**.domain
  122. # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象
  123. #typeAliasesSuperType: Class<?>
  124. # 如果配置了该属性,SqlSessionFactoryBean 会把该包下面的类注册为对应的 TypeHandler
  125. #typeHandlersPackage: null
  126. # 如果配置了该属性,会将路径下的枚举类进行注入,让实体类字段能够简单快捷的使用枚举属性
  127. #typeEnumsPackage: null
  128. # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
  129. checkConfigLocation: false
  130. # 通过该属性可指定 MyBatis 的执行器,MyBatis 的执行器总共有三种:
  131. # SIMPLE:该执行器类型不做特殊的事情,为每个语句的执行创建一个新的预处理语句(PreparedStatement)
  132. # REUSE:该执行器类型会复用预处理语句(PreparedStatement)
  133. # BATCH:该执行器类型会批量执行所有的更新语句
  134. executorType: SIMPLE
  135. # 指定外部化 MyBatis Properties 配置,通过该配置可以抽离配置,实现不同环境的配置部署
  136. configurationProperties: null
  137. typeHandlersPackage: com.zhongzheng.common.type
  138. configuration:
  139. # 自动驼峰命名规则(camel case)映射
  140. # 如果您的数据库命名符合规则无需使用 @TableField 注解指定数据库字段名
  141. mapUnderscoreToCamelCase: true
  142. # 默认枚举处理类,如果配置了该属性,枚举将统一使用指定处理器进行处理
  143. # org.apache.ibatis.type.EnumTypeHandler : 存储枚举的名称
  144. # org.apache.ibatis.type.EnumOrdinalTypeHandler : 存储枚举的索引
  145. # com.baomidou.mybatisplus.extension.handlers.MybatisEnumTypeHandler : 枚举类需要实现IEnum接口或字段标记@EnumValue注解.
  146. defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler
  147. # 当设置为 true 的时候,懒加载的对象可能被任何懒属性全部加载,否则,每个属性都按需加载。需要和 lazyLoadingEnabled 一起使用。
  148. aggressiveLazyLoading: true
  149. # MyBatis 自动映射策略
  150. # NONE:不启用自动映射
  151. # PARTIAL:只对非嵌套的 resultMap 进行自动映射
  152. # FULL:对所有的 resultMap 都进行自动映射
  153. autoMappingBehavior: PARTIAL
  154. # MyBatis 自动映射时未知列或未知属性处理策
  155. # NONE:不做任何处理 (默认值)
  156. # WARNING:以日志的形式打印相关警告信息
  157. # FAILING:当作映射失败处理,并抛出异常和详细信息
  158. autoMappingUnknownColumnBehavior: NONE
  159. # Mybatis一级缓存,默认为 SESSION
  160. # SESSION session级别缓存,同一个session相同查询语句不会再次查询数据库
  161. # STATEMENT 关闭一级缓存
  162. localCacheScope: SESSION
  163. # 开启Mybatis二级缓存,默认为 true
  164. cacheEnabled: true
  165. global-config:
  166. # 是否打印 Logo banner
  167. banner: true
  168. # 是否初始化 SqlRunner
  169. enableSqlRunner: false
  170. dbConfig:
  171. # 主键类型
  172. # AUTO 数据库ID自增
  173. # NONE 空
  174. # INPUT 用户输入ID
  175. # ASSIGN_ID 全局唯一ID
  176. # ASSIGN_UUID 全局唯一ID UUID
  177. idType: AUTO
  178. # 表名前缀
  179. tablePrefix: null
  180. # 字段 format,例: %s,(对主键无效)
  181. columnFormat: null
  182. # 表名是否使用驼峰转下划线命名,只对表名生效
  183. tableUnderline: true
  184. # 大写命名,对表名和字段名均生效
  185. capitalMode: false
  186. # 全局的entity的逻辑删除字段属性名
  187. logicDeleteField: null
  188. # 逻辑已删除值
  189. logicDeleteValue: 2
  190. # 逻辑未删除值
  191. logicNotDeleteValue: 0
  192. # 字段验证策略之 insert,在 insert 的时候的字段验证策略
  193. # IGNORED 忽略判断
  194. # NOT_NULL 非NULL判断
  195. # NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断)
  196. # DEFAULT 默认的,一般只用于注解里
  197. # NEVER 不加入 SQL
  198. insertStrategy: NOT_EMPTY
  199. # 字段验证策略之 update,在 update 的时候的字段验证策略
  200. updateStrategy: NOT_EMPTY
  201. # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
  202. selectStrategy: NOT_EMPTY
  203. # 开启多租户
  204. tenant:
  205. enabled-tenant: true
  206. # PageHelper分页插件
  207. pagehelper:
  208. helperDialect: mysql
  209. reasonable: true
  210. supportMethodsArguments: true
  211. params: count=countSql
  212. # Swagger配置
  213. swagger:
  214. # 是否开启swagger
  215. enabled: true
  216. # 请求前缀
  217. pathMapping:
  218. knife4j:
  219. enable: true
  220. setting:
  221. enableFooter: false
  222. # 防止XSS攻击
  223. xss:
  224. # 过滤开关
  225. enabled: true
  226. # 排除链接(多个用逗号分隔)
  227. excludes: /system/notice/*
  228. # 匹配链接
  229. urlPatterns: /system/*,/monitor/*,/tool/*
  230. feign:
  231. # 开启压缩
  232. compression:
  233. request:
  234. enabled: true
  235. response:
  236. enabled: true
  237. okhttp:
  238. enabled: true
  239. hystrix:
  240. enabled: true
  241. poliv:
  242. sdk:
  243. userid: egsxlptzdq
  244. appId: ezl5uy4zei
  245. appSecret: 2bf5bb3c31d34531943df10284edd50b
  246. tencent:
  247. cloud:
  248. SecretId: AKIDd6XkjTw9D1atwkJceS2NSIuHPK1ThfOr
  249. SecretKey: GG2ZqrdCWcS6Yx72h6F7k7E4ey2qPnwq
  250. aliyun:
  251. sms:
  252. signName: 中正科技
  253. registerTemplateCode: SMS_228670004
  254. loginTemplateCode: SMS_228670005
  255. forgetTemplateCode: SMS_228685033
  256. pwdTemplateCode: SMS_230220381
  257. bindNewTelCode: SMS_232178371
  258. accessKeyId: LTAIgC8O2WUXvXuR
  259. accessKeySecret: 1yyCazuT1M6MruBXzgFjP0p9gdMlwX
  260. OpenTheGoodsCode: SMS_230970155 #商品开通提醒
  261. informationNotificationCode: SMS_230965149 #完善报名资料通知
  262. materialReviewCode: SMS_230980165 #报名资料审核通过通知
  263. NotificationOfFailureCode: SMS_230980172 #报名资料审核不通过通知
  264. remainingDaysValidityCode: SMS_236566823 #开通班级有效期还剩天数
  265. completionReminderCode: SMS_230965157 #学时学习完成提醒
  266. schoolHoursCode: SMS_230970166 #学时机构审核通过提醒
  267. auditFailedCode: SMS_230970167 #学时机构审核不通过提醒
  268. ReminderApproval: SMS_231200314 #学时机构审核通过提醒
  269. passTheReminder: SMS_230980180 #学时机构审核不通过提醒
  270. bookingReminder: SMS_230980181 #考试预约提醒
  271. cancellationReminder: SMS_230980183 #考试预约取消提醒
  272. reservationSuccess: SMS_230980186 #考试预约成功提醒
  273. examinationRemind: SMS_230960195 #考试提醒
  274. newExamPass: SMS_230970179 #七大员新考考试通过提醒
  275. newExamFail: SMS_235491082 #七大员新考考试不通过提醒
  276. openingReminder: SMS_230970209 #七大员题库开通提醒(12-22
  277. classRemind: SMS_230965224 #二建继教开班提醒
  278. OverdueReminder: SMS_230980259 #班级过期提醒
  279. OverdueReminderHave: SMS_230965228 #班级过期提醒有学习次数
  280. planReminder: SMS_230970248 #学习计划提醒
  281. commitmentCode: SMS_231190546 #承诺书审核通过通知
  282. commitmentFailsCode: SMS_231215516 #承诺书审核不通过通知
  283. mockBookingReminder: SMS_243430276 #模考预约提醒
  284. mockRemind: SMS_243355276 #模考开始提醒
  285. liveStartRemind: SMS_243345514 #直播开课提醒
  286. buyNotStudyStudentRemind : SMS_247745294 #学生购买未学习
  287. buyNotStudyTeacherRemind : SMS_247935257 #学生购买未学习老师
  288. longNotStudyStudentRemind: SMS_247910221 #学生长时间未学习
  289. longNotStudyTeacherRemind: SMS_247765294 #学生长时间未学习老师
  290. signCommitmentRemind: SMS_250390195 #签署承诺书提醒
  291. todayExamNotRecordWarn: SMS_257713140 #学员打卡提醒(每日一练)
  292. todayExamNotRecordTeachWarn: SMS_257702971 #学员打卡教务提醒(每日一练)
  293. noFinishExamNoteCode: SMS_262460267 #未做完试卷通知