package org.sang.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.stereotype.Component; @Configuration @Component @PropertySource(value = "classpath:jdbc.properties",encoding = "UTF-8") public class DBConfig { @Value("${db.driverClass}") public String driver; @Value("${db.url}") public String url; @Value("${db.username}") public String username; @Value("${db.password}") public String password; @Value("${db.initialSize}") public int initialSize; @Value("${db.maxActive}") public int maxActive; @Value("${db.maxIdle}") public int maxIdle; @Value("${db.minIdle}") public int minIdle; @Value("${db.maxWait}") public int maxWait; }
最近下载更多
abcdmly12 LV1
1月12日
monolog LV4
2023年6月18日
微信网友_6260196253601792 LV7
2023年6月9日
6389181 LV7
2023年6月1日
刘海柱 LV1
2022年6月12日
wubinbin LV11
2021年12月10日
lsc860911 LV11
2021年11月24日
xbjzc123 LV5
2021年11月23日
eclipse_javen LV6
2021年8月21日
秦sir3067683450 LV10
2021年7月29日
最近浏览更多
2131234536546 LV7
3月31日
abcdmly12 LV1
1月12日
XiaoSong888 LV2
1月10日
fff2003 LV6
2023年12月23日
SQ2930501923 LV14
2023年11月14日
abandan LV4
2023年11月6日
hj1172788262 LV5
2023年10月25日
微信网友_6692060019216384
2023年10月14日
暂无贡献等级
hkxyyz LV6
2023年7月16日
18590560528 LV1
2023年6月24日