|
@@ -0,0 +1,159 @@
|
|
|
|
+###########################################################################################
|
|
|
|
+#
|
|
|
|
+#
|
|
|
|
+###########################################################################################
|
|
|
|
+#端口配置
|
|
|
|
+server.port=8001
|
|
|
|
+#tomcat最大线程数,默认为200
|
|
|
|
+server.tomcat.max-threads=300
|
|
|
|
+#tomcat最大连接数
|
|
|
|
+server.tomcat.max-connections=25000
|
|
|
|
+#tomcat的URI编码
|
|
|
|
+server.tomcat.uri-encoding=UTF-8
|
|
|
|
+
|
|
|
|
+#项目名称
|
|
|
|
+spring.application.name=themis-admin
|
|
|
|
+spring.datasource.url=jdbc:mysql://${db.host}:${db.port}/${db.name}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8
|
|
|
|
+spring.datasource.username=${db.username}
|
|
|
|
+spring.datasource.password=${db.password}
|
|
|
|
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
+spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
|
+#下面为druid连接池的补充设置,应用到上面所有数据源中
|
|
|
|
+#初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
|
|
|
|
+spring.datasource.initial-size=10
|
|
|
|
+#最小连接池数量
|
|
|
|
+spring.datasource.min-idle=1
|
|
|
|
+#最大连接池数量
|
|
|
|
+spring.datasource.max-active=5
|
|
|
|
+#获取连接时最大等待时间,单位毫秒。配置了maxWait之后,缺省启用公平锁,并发效率会有所下降,如果需要可以通过配置useUnfairLock属性为true使用非公平锁。
|
|
|
|
+spring.datasource.max-wait=60000
|
|
|
|
+#配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
+spring.datasource.time-between-eviction-runs-millis=60000
|
|
|
|
+#配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
+spring.datasource.min-evictable-idle-time-millis=300000
|
|
|
|
+#用来检测连接是否有效的sql,要求是一个查询语句,常用select 'x'。如果validationQuery为null,testOnBorrow、testOnReturn、testWhileIdle都不会起作用
|
|
|
|
+spring.datasource.validation-query=SELECT 1 FROM DUAL
|
|
|
|
+#建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
|
|
|
|
+spring.datasource.test-while-idle=true
|
|
|
|
+#申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
|
|
|
|
+spring.datasource.test-on-borrow=false
|
|
|
|
+#归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
|
|
|
|
+spring.datasource.test-on-return=false
|
|
|
|
+#是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。(mysql5.5+建议开启)
|
|
|
|
+spring.datasource.pool-prepared-statements=true
|
|
|
|
+#要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。在Druid中,不会存在Oracle下PSCache占用内存过多的问题,可以把这个数值配置大一些,比如说100
|
|
|
|
+spring.datasource.max-pool-prepared-statement-per-connection-size=20
|
|
|
|
+#配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
|
|
+spring.datasource.filters=stat,wall,slf4j
|
|
|
|
+#合并多个datasource监控
|
|
|
|
+spring.datasource.use-global-data-source-stat=true
|
|
|
|
+# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
|
|
+spring.datasource.connect-properties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000;
|
|
|
|
+#只要将其值更改为false时就可以解决如下问题,即存在id或者name相同的bean时,不是打印出相关信息,而是直接抛异常,这样就可以迫使开发人员必须解决id或者name重复的问题后才能成功启动容器。然后就尝试了下,
|
|
|
|
+spring.main.allow-bean-definition-overriding=false
|
|
|
|
+
|
|
|
|
+#日志配置
|
|
|
|
+logging.level.root=info
|
|
|
|
+
|
|
|
|
+# MyBatis-Plus配置
|
|
|
|
+mybatis-plus.typeAliasesPackage=com.qmth.themis.business.entity
|
|
|
|
+mybatis-plus.mapper-locations=classpath:/mapper/*Mapper.xml
|
|
|
|
+mybatis-plus.global-config.id-type=1
|
|
|
|
+mybatis-plus.configuration.map-underscore-to-camel-case=true
|
|
|
|
+mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
+logging.level.com.qmth.themis.business.dao=debug
|
|
|
|
+mybatis-plus.configuration.call-setters-on-nulls=true
|
|
|
|
+
|
|
|
|
+#redis
|
|
|
|
+spring.redis.database=${redis.database}
|
|
|
|
+spring.redis.host=${redis.host}
|
|
|
|
+spring.redis.port=${redis.port}
|
|
|
|
+spring.redis.password=${redis.password}
|
|
|
|
+# 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
|
+# 连接池最大连接数(使用负值表示没有限制)
|
|
|
|
+spring.redis.jedis.pool.max-active=30
|
|
|
|
+# 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
|
+spring.redis.jedis.pool.max-wait=-1ms
|
|
|
|
+# 连接池中的最大空闲连接
|
|
|
|
+spring.redis.jedis.pool.max-idle=5
|
|
|
|
+# 连接池中的最小空闲连接
|
|
|
|
+spring.redis.jedis.pool.min-idle=1
|
|
|
|
+# 连接超时时间(毫秒)
|
|
|
|
+spring.redis.jedis.timeout=180000
|
|
|
|
+
|
|
|
|
+#日期格式化
|
|
|
|
+spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
|
|
|
|
+spring.jackson.time-zone=GMT+8
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#系统配置
|
|
|
|
+sys.config.datacenterId=1
|
|
|
|
+sys.config.oss=true
|
|
|
|
+sys.config.attachmentType=.xlsx,.xls,.doc,.docx,.pdf,.jpg,.jpeg,.png,.html,.zip,.mp3,.wav,.dll,.exe
|
|
|
|
+sys.config.serverUpload=/project/project/themis/tomcat/themis-files/
|
|
|
|
+#sys.config.deviceId=1
|
|
|
|
+sys.config.fileHost=192.168.10.136:8001
|
|
|
|
+sys.config.serverHost=192.168.10.136:8001
|
|
|
|
+sys.config.adminLogoUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com/frontend/wx_logo.png
|
|
|
|
+spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/
|
|
|
|
+
|
|
|
|
+#配置rocketmq
|
|
|
|
+#发送消息超时时间,单位毫秒。默认10000
|
|
|
|
+rocketmq.producer.send-message-timeout=300000
|
|
|
|
+#Producer组名,多个Producer如果属于一个应用,发送同样的消息,则应该将它们归为同一组。默认DEFAULT_PRODUCER
|
|
|
|
+rocketmq.producer.group=my-group
|
|
|
|
+#客户端限制的消息大小,超过报错,同时服务端也会限制,需要跟服务端配合使用。默认4MB
|
|
|
|
+rocketmq.producer.compress-message-body-threshold=4096
|
|
|
|
+rocketmq.producer.max-message-size=4194304
|
|
|
|
+#如果消息发送失败,最大重试次数,该参数只对异步发送模式起作用。默认2
|
|
|
|
+rocketmq.producer.retry-times-when-send-async-failed=3
|
|
|
|
+#如果消息发送失败,是否继续发下一条
|
|
|
|
+rocketmq.producer.retry-next-server=true
|
|
|
|
+#如果消息发送失败,最大重试次数,该参数只对同步发送模式起作用。默认2
|
|
|
|
+rocketmq.producer.retry-times-when-send-failed=3
|
|
|
|
+#ACK
|
|
|
|
+rocketmq.producer.access-key=AK
|
|
|
|
+rocketmq.producer.secret-key=SK
|
|
|
|
+#启用消息轨迹,默认值true
|
|
|
|
+rocketmq.producer.enable-msg-trace=true
|
|
|
|
+#自定义的消息轨迹主题
|
|
|
|
+#rocketmq.producer.customized-trace-topic=my-trace-topic
|
|
|
|
+
|
|
|
|
+#mq topic和group配置
|
|
|
|
+mq.config.topic=themis-topic-exam
|
|
|
|
+mq.config.map.SESSION_GROUP=themis-group-exam-session
|
|
|
|
+mq.config.map.USER_LOG_GROUP=themis-group-exam-userLog
|
|
|
|
+mq.config.map.LOG_GROUP=themis-group-exam-log
|
|
|
|
+mq.config.map.TASK_GROUP=themis-group-exam-task
|
|
|
|
+mq.config.map.WEBSOCKET_DELAY_GROUP=themis-group-exam-websocketDelay
|
|
|
|
+mq.config.map.QUARTZ_GROUP=themis-group-exam-quartz
|
|
|
|
+mq.config.map.CALCULATE_OBJECTIVE_SCORE_GROUP=themis-group-exam-calculateObjectiveScore
|
|
|
|
+mq.config.map.FACE_VERIFY_SAVE_GROUP=themis-group-exam-faceVerifySave
|
|
|
|
+mq.config.map.LIVENESS_VERIFY_SAVE_GROUP=themis-group-exam-livenessVerifySave
|
|
|
|
+mq.config.map.EXAM_RECORD_PERSISTED_GROUP=themis-group-exam-examRecordPersisted
|
|
|
|
+mq.config.map.EXAM_RECORD_UPDATE_GROUP=themis-group-exam-examRecordUpdate
|
|
|
|
+mq.config.map.EXAM_BREAK_RECORD_PERSISTED_GROUP=themis-group-exam-examBreakHistoryPersisted
|
|
|
|
+mq.config.map.SCORE_CALCULATE_GROUP=themis-group-exam-scoreCalculate
|
|
|
|
+mq.config.map.EXAM_STUDENT_UPDATE_GROUP=themis-group-exam-examStudentUpdate
|
|
|
|
+mq.config.map.EXAM_BREAK_GROUP=themis-group-exam-examBreak
|
|
|
|
+mq.config.map.EXAM_BREAK_DELAY_GROUP=themis-group-exam-examBreakDelay
|
|
|
|
+mq.config.map.WEBSOCKET_OE_GROUP=themis-group-exam-websocketOe
|
|
|
|
+mq.config.map.WEBSOCKET_OE_MOBILE_GROUP=themis-group-exam-websocketOeMobile
|
|
|
|
+mq.config.map.TENCENT_VIDEO_GROUP=themis-group-exam-tencentVideo
|
|
|
|
+
|
|
|
|
+#api前缀
|
|
|
|
+prefix.url.admin=api/admin
|
|
|
|
+prefix.url.open=api/open
|
|
|
|
+prefix.url.notify=api/notify
|
|
|
|
+
|
|
|
|
+monitor.config.prefix=oe_test
|
|
|
|
+
|
|
|
|
+#无需鉴权的url
|
|
|
|
+no.auth.urls=/webjars/**,/druid/**,/swagger-ui.html,/doc.html,/swagger-resources/**,/v2/api-docs,/webjars/springfox-swagger-ui/**,/api/admin/user/login/account,/api/admin/sys/org/queryByOrgCode,/file/**,/upload/**,/client/**,/base_photo/**,/frontend/**,/api/admin/client/save,/api/admin/client/upload,/api/admin/client/query,/api/admin/app/save,/api/admin/app/query,/api/notify/monitor/record/tencent
|
|
|
|
+
|
|
|
|
+common.system.urls=/api/admin/sys/getMenu,/api/admin/user/logout,/api/admin/sys/env,/api/admin/sys/file/upload,/api/admin/sys/file/download,/api/admin/sys/org/query,/api/admin/sys/role/query,/api/admin/sys/examActivity/query,/api/admin/sys/exam/query,/api/admin/sys/examRoom/query,/api/admin/sys/exam/privilegeQuery,/api/admin/student/photo/upload,/api/admin/sys/getPlayUrls,/api/admin/sys/exam/finish/query,/api/admin/sys/get_tencent_video
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+yun.mark.url=http://localhost:8081
|
|
|
|
+yun.mark.studentScoreApi=/api/exam/student/score
|
|
|
|
+
|