Quellcode durchsuchen

上传文件至 'themis-task/src/main/resources'

胡月 vor 2 Jahren
Ursprung
Commit
bcf3e36bbb
1 geänderte Dateien mit 177 neuen und 0 gelöschten Zeilen
  1. 177 0
      themis-task/src/main/resources/application-main-temp.properties

+ 177 - 0
themis-task/src/main/resources/application-main-temp.properties

@@ -0,0 +1,177 @@
+#端口配置
+server.port=8003
+#tomcat最大线程数,默认为200
+server.tomcat.max-threads=30
+#tomcat最大连接数
+server.tomcat.max-connections=3000
+#tomcat的URI编码
+server.tomcat.uri-encoding=UTF-8
+
+#项目名称
+spring.application.name=themis-task
+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=10
+#最大连接池数量
+spring.datasource.max-active=50
+#获取连接时最大等待时间,单位毫秒。配置了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=info
+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=100
+# 连接池最大阻塞等待时间(使用负值表示没有限制)
+spring.redis.jedis.pool.max-wait=10000ms
+# 连接池中的最大空闲连接
+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=/home/project/themis/test/tomcat/themis-files
+spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/
+
+# 配置JobStore
+spring.quartz.job-store-type=jdbc
+spring.quartz.jdbc.initialize-schema=never
+# JobDataMaps是否都为String类型,默认false
+spring.quartz.properties.org.quartz.jobStore.useProperties=false
+# 表的前缀,默认QRTZ_
+spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
+# 是否加入集群
+spring.quartz.properties.org.quartz.jobStore.isClustered=true
+# 调度实例失效的检查时间间隔 ms
+spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=5000
+# 当设置为“true”时,此属性告诉Quartz 在非托管JDBC连接上调用setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED)。
+spring.quartz.properties.org.quartz.jobStore.txIsolationLevelReadCommitted=true
+# 数据保存方式为数据库持久化
+spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
+# 数据库代理类,一般org.quartz.impl.jdbcjobstore.StdJDBCDelegate可以满足大部分数据库
+spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+#============================================================================
+# Scheduler 调度器属性配置
+#============================================================================
+# 调度标识名 集群中每一个实例都必须使用相同的名称
+spring.quartz.properties.org.quartz.scheduler.instanceName=ClusterQuartz
+# ID设置为自动获取 每一个必须不同
+spring.quartz.properties.org.quartz.scheduler.instanceId=AUTO
+
+#============================================================================
+# 配置ThreadPool
+#============================================================================
+# 线程池的实现类(一般使用SimpleThreadPool即可满足几乎所有用户的需求)
+spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
+# 指定线程数,一般设置为1-100直接的整数,根据系统资源配置
+spring.quartz.properties.org.quartz.threadPool.threadCount=10
+# 设置线程的优先级(可以是Thread.MIN_PRIORITY(即1)和Thread.MAX_PRIORITY(这是10)之间的任何int 。默认值为Thread.NORM_PRIORITY(5)。)
+spring.quartz.properties.org.quartz.threadPool.threadPriority=5
+
+#============================================================================
+# 配置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
+
+monitor.config.prefix=oe_prod
+
+mq.config.map.TENCENT_VIDEO_GROUP=themis-group-exam-tencentVideo
+
+
+yun.mark.url=http://localhost:8081
+yun.mark.studentScoreApi=/api/exam/student/score