Skip to content

Commit

Permalink
Merge pull request #212 from 17629354490/master
Browse files Browse the repository at this point in the history
dbutils bug fix
  • Loading branch information
gudaoxuri authored Jan 22, 2024
2 parents 383f5e3 + ae66a8b commit 73499b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3928,7 +3928,7 @@ <h4 id="jdbc_批量插入性能问题"><a class="anchor" href="#jdbc_批量插
</div>
<div id="footer">
<div id="footer-text">
Last updated 2024-01-10 17:31:05 +0800
Last updated 2024-01-16 09:00:15 +0800
</div>
</div>
</body>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
group.idealworld.dew.core.dbutils.DbutilsAutoConfiguration
group.idealworld.dew.core.dbutils.dto.DBUtilsConfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package group.idealworld.dew.core.dbutils;

import com.alibaba.druid.pool.DruidDataSource;
import group.idealworld.dew.core.dbutils.dto.DBUtilsConfig;
import group.idealworld.dew.core.dbutils.dto.Meta;
import group.idealworld.dew.core.dbutils.dto.Page;
import group.idealworld.dew.core.dbutils.process.DSLoader;
Expand Down Expand Up @@ -36,11 +37,16 @@ public class DBTest {

private DewDB db;

@Autowired
private DBUtilsConfig dbUtilsConfig;

@Autowired
private ConfigurableApplicationContext configurableApplicationContext;

@BeforeEach
public void before() {
DewDBUtils.init(dbUtilsConfig);
db = DewDBUtils.use("default");
db = new DewDB(DSLoader.getDSInfo("default"));
DruidDataSource dataSource = (DruidDataSource) db.getDsInfo().getDataSource();
dataSource.setUrl(configurableApplicationContext.getEnvironment().getProperty("spring.datasource.url"));
Expand Down

0 comments on commit 73499b5

Please sign in to comment.