From 3a1b824203d9e6a4c2a55e2d0d8adc0bae4f03d0 Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期一, 25 三月 2024 13:11:32 +0800 Subject: [PATCH] 安全物资和设备管理调整v2 --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/DataCourceProperties.java | 151 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 151 insertions(+), 0 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/DataCourceProperties.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/DataCourceProperties.java new file mode 100644 index 0000000..0e9beb4 --- /dev/null +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/DataCourceProperties.java @@ -0,0 +1,151 @@ +package com.gkhy.safePlatform.config.database; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.Configuration; + +@Configuration +@ConfigurationProperties(prefix = "spring.datasource") +public class DataCourceProperties { + + private Prop emergency; + + private Prop goalmanage; + + private Prop incidentmanage; + + private Prop equipment; + + public Prop getEmergency() { + return emergency; + } + + public void setEmergency(Prop emergency) { + this.emergency = emergency; + } + + public Prop getGoalmanage() { + return goalmanage; + } + + public void setGoalmanage(Prop goalmanage) { + this.goalmanage = goalmanage; + } + + public Prop getIncidentmanage() { + return incidentmanage; + } + + public void setIncidentmanage(Prop incidentmanage) { + this.incidentmanage = incidentmanage; + } + + public Prop getEquipment() { + return equipment; + } + + public void setEquipment(Prop equipment) { + this.equipment = equipment; + } + + public static class Prop{ + + private String url; + + private String username; + + private String password; + private Integer initialSize; + + private Integer minIdle; + + private Integer maxActive; + + private Integer maxWait; + + private String validationQuery; + + private Integer validationQueryTimeout; + + private Boolean testWhileIdle; + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Integer getInitialSize() { + return initialSize; + } + + public void setInitialSize(Integer initialSize) { + this.initialSize = initialSize; + } + + public Integer getMinIdle() { + return minIdle; + } + + public void setMinIdle(Integer minIdle) { + this.minIdle = minIdle; + } + + public Integer getMaxActive() { + return maxActive; + } + + public void setMaxActive(Integer maxActive) { + this.maxActive = maxActive; + } + + public Integer getMaxWait() { + return maxWait; + } + + public void setMaxWait(Integer maxWait) { + this.maxWait = maxWait; + } + + public String getValidationQuery() { + return validationQuery; + } + + public void setValidationQuery(String validationQuery) { + this.validationQuery = validationQuery; + } + + public Integer getValidationQueryTimeout() { + return validationQueryTimeout; + } + + public void setValidationQueryTimeout(Integer validationQueryTimeout) { + this.validationQueryTimeout = validationQueryTimeout; + } + + public Boolean getTestWhileIdle() { + return testWhileIdle; + } + + public void setTestWhileIdle(Boolean testWhileIdle) { + this.testWhileIdle = testWhileIdle; + } + } +} -- Gitblit v1.9.2