All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cicada.mybatis.config.BasicDataSourceConfig Maven / Gradle / Ivy

The newest version!
package cicada.mybatis.config;

public class BasicDataSourceConfig extends DBConfig
{
	/*@Autowired
	Environment env;
	
	@Bean(destroyMethod = "close")
	@Override
	public DataSource dataSource()
	{
		BasicDataSource ds = new BasicDataSource();
		String driver = env.getProperty("jdbc.driver");
		ds.setDriverClassName(driver);
		String url = env.getProperty("jdbc.url");
		ds.setUrl(url);
		String username = env.getProperty("jdbc.username");
		ds.setUsername(username);
		String password = env.getProperty("jdbc.password");
		ds.setPassword(password);
		ds.setTestOnBorrow(true);
		ds.setValidationQuery("select 1 from dual");
		return ds;
	}*/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy