adding database support

This commit is contained in:
tonitch committed 2024-02-27 12:08:28 +01:00
1 parent c0ab074a95
commit 88108918dd
4 files changed
+34 -15

No files matched your search

@@ -0,0 +1,23 @@
package ovh.herisson.Clyde;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
@Configuration
public class JdbcConfig {
@Bean
public DataSource psqlSource(){
DriverManagerDataSource source = new DriverManagerDataSource();
source.setDriverClassName("org.postgresql.Driver");
source.setUrl("jdbc:postgresql://localhost:5432/clyde");
source.setUsername("devel");
source.setPassword("devel");
return source;
}
}