-
@Configuration()@EnableAutoConfiguration() public final class DataSourcePropertyConfig
-
-
Constructor Summary
Constructors Constructor Description DataSourcePropertyConfig()
-
Method Summary
Modifier and Type Method Description final DataSourcegetDataSource(@Autowired() File dsPropertyFile, @Value(value = ${url}) String url, @Value(value = ${user}) String user, @Value(value = ${password}) String password, @Value(value = ${driver}) String driver, @Value(value = ${module}) String module, @Value(value = ${type}) String type)-
-
Method Detail
-
getDataSource
@Bean()@ConfigurationProperties(prefix = yakclient.web-utils.config-ds)@ConditionalOnProperty(havingValue = true, matchIfMissing = false, value = {yakclient.web-utils.enable-config-ds}) final DataSource getDataSource(@Autowired() File dsPropertyFile, @Value(value = ${url}) String url, @Value(value = ${user}) String user, @Value(value = ${password}) String password, @Value(value = ${driver}) String driver, @Value(value = ${module}) String module, @Value(value = ${type}) String type)
-
-
-
-