第一步:添加依赖

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid</artifactId>
    <version>1.1.10</version>
</dependency>

第二步:整合插件

public class MyJFinalConfig extends JFinalConfig {
    public void configPlugin(Plugins plugins) {// 创建一个druid数据源插件对象
        DruidPlugin dp = new DruidPlugin("jdbc:mysql://127.0.0.1/jfinal", "root", "root"); 
     // 添加druid插件
     plugins.add(dp);
  }
}

 

相关文章:

  • 2021-12-20
  • 2021-06-01
  • 2021-07-27
  • 2021-11-29
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-06-04
  • 2021-07-21
  • 2021-12-22
  • 2021-09-20
相关资源
相似解决方案