skip to Main Content

From where my springboot app loads database? – Mysql

I'm trying to link a project to a database My application.properties file spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false Config file @Configuration @EnableTransactionManagement public class DBConfig { @Bean public DataSource dataSource() { HikariConfig config = new HikariConfig(); config.setJdbcUrl("jdbc:mysql://localhost:3306/users"); config.setUsername("root"); config.setPassword("1111"); config.addDataSourceProperty("cachePrepStmts", "true"); config.addDataSourceProperty("prepStmtCacheSize", "250"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");…

VIEW QUESTION
Back To Top
Search