WANG 6 роки тому
батько
коміт
9cac17003f

+ 0 - 15
examcloud-core-examwork-starter/src/main/resources/application-dev.properties

@@ -1,15 +0,0 @@
-spring.datasource.url=jdbc:mysql://db-host:3306/exam_cloud_kf?useUnicode=true&characterEncoding=UTF-8&useSSL=false
-spring.datasource.username=root
-spring.datasource.password=root
-
-spring.redis.host=redis-host
-spring.redis.port=6379
-
-eureka.client.serviceUrl.defaultZone=http://eureka-host:1111/eureka/
-
-$log.level.default=debug
-
-$dir=D:/Temp/examcloud/dir
-$tempDir=D:/Temp/examcloud/tempDir
-
-$deleteExamStudent.force=false

+ 0 - 18
examcloud-core-examwork-starter/src/main/resources/application-prod.properties

@@ -1,18 +0,0 @@
-spring.datasource.url=jdbc:mysql://rds7b2sll8un5kz99s0i122.mysql.rds.aliyuncs.com:3306/exam_cloud?useUnicode=true&characterEncoding=UTF-8
-spring.datasource.username=exam_cloud
-spring.datasource.password=examcloud123!@#
-
-eureka.client.serviceUrl.defaultZone=http://192.168.1.70:1111/eureka/
-
-$log.level.default=error
-
-hystrix.command.default.execution.timeout.enabled=false
-hystrix.threadpool.default.coreSize = 500
-
-spring.redis.host=r-wz97e520d2701e54555.redis.rds.aliyuncs.com
-spring.redis.port=6379
-spring.redis.password=Qmth87863577
-
-$tempDir=/root/project/examcloud/examcloud-core-examwork/tempDir
-
-$deleteExamStudent.force=false

+ 0 - 17
examcloud-core-examwork-starter/src/main/resources/application-test.properties

@@ -1,17 +0,0 @@
-spring.datasource.url=jdbc:mysql://db-host:3306/exam_cloud_kf?useUnicode=true&characterEncoding=UTF-8
-spring.datasource.username=root
-spring.datasource.password=root
-
-
-spring.redis.host=redis-host
-spring.redis.port=6379
-
-
-eureka.client.serviceUrl.defaultZone=http://eureka-host:1111/eureka/
-
-$log.level.default=debug
-
-$dir=/home/qmth/project/examcloud/examcloud-core-examwork/dir
-$tempDir=/home/qmth/project/examcloud/examcloud-core-examwork/tempDir
-
-$deleteExamStudent.force=false

+ 4 - 41
examcloud-core-examwork-starter/src/main/resources/application.properties

@@ -1,41 +1,4 @@
-spring.profiles.active=dev
-
-spring.application.name=EC-CORE-EXAMWORK
-server.port=8001
-
-spring.datasource.validation-query=SELECT 1 FROM DUAL
-spring.datasource.test-on-borrow=true
-spring.datasource.driver-class-name=com.mysql.jdbc.Driver
-
-spring.jpa.show-sql=false
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
-spring.jpa.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
-
-
-spring.http.multipart.max-file-size=10Mb
-
-hystrix.command.default.execution.timeout.enabled=false
-hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 600000
-
-ribbon.ReadTimeout=800000
-ribbon.ConnectTimeout=800000
-
-spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
-spring.jackson.time-zone=GMT+8
-
-$rmp.ctr.examwork=/api/ecs_exam_work
-$rmp.cloud.examwork=/api/core/examwork/
-$rmp.ctr.basic=/api/ecs_core
-$rmp.ctr.oe=/api/ecs_oe
-
-eureka.instance.lease-renewal-interval-in-seconds=1
-eureka.instance.lease-expiration-duration-in-seconds=2
-eureka.instance.prefer-ip-address=true
-eureka.instance.instance-id=${spring.cloud.client.ipAddress}:${server.port}
-eureka.client.healthcheck.enabled=true
-
-info.app=${spring.application.name}
-
-$log.level.default=debug
-
+spring.profiles.active=dev
+$config.server.host=config-host
+
+