Codota Logo
PerformanceInterceptor.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.baomidou.mybatisplus.plugins.PerformanceInterceptor
constructor

Best Java code snippets using com.baomidou.mybatisplus.plugins.PerformanceInterceptor.<init> (Showing top 5 results out of 315)

  • Common ways to obtain PerformanceInterceptor
private void myMethod () {
PerformanceInterceptor p =
  • Codota Iconnew PerformanceInterceptor()
  • Smart code suggestions by Codota
}
origin: aillamsun/devX

/**
 * mybatis-plus SQL执行效率插件【生产环境可以关闭】
 */
@Bean
public PerformanceInterceptor performanceInterceptor() {
  return new PerformanceInterceptor();
}
origin: yujunhao8831/spring-boot-mybatisplus-multiple-datasource

/**
 * mybatis-plus 性能分析拦截器<br>
 * 文档:http://mp.baomidou.com<br>
 */
@Bean
public PerformanceInterceptor performanceInterceptor () {
  return new PerformanceInterceptor();
}
origin: sail-y/spring-boot-admin

  /**
   * mybatis-plus SQL执行效率插件【生产环境可以关闭】
   */
  @Bean
  @ConditionalOnProperty(name = "PROFILE", havingValue = "dev", matchIfMissing = true)
  public PerformanceInterceptor performanceInterceptor() {
    return new PerformanceInterceptor();
  }
}
origin: liupeng328/java-api-doc

  /**
   * SQL执行效率插件 <br>
   * <p>
   * 参数:maxTime SQL 执行最大时长,超过自动停止运行,有助于发现问题。
   * 参数:format SQL SQL是否格式化,默认false。
   * <p>
   */
  @Bean
  @Profile({"dev", "test"})// 设置 dev test 环境开启
  public PerformanceInterceptor performanceInterceptor() {
    PerformanceInterceptor per = new PerformanceInterceptor();
    per.setFormat(true);
    per.setMaxTime(10000);//10秒
    return per;
  }
}
origin: liupeng328/java-api-doc

@Bean("mybatisSqlSession")
public SqlSessionFactory sqlSessionFactory(DataSource dataSource, ResourceLoader resourceLoader, GlobalConfiguration globalConfiguration) throws Exception {
  MybatisSqlSessionFactoryBean sqlSessionFactory = new MybatisSqlSessionFactoryBean();
  sqlSessionFactory.setDataSource(dataSource);
  MybatisConfiguration configuration = new MybatisConfiguration();
  configuration.setDefaultScriptingLanguage(MybatisXMLLanguageDriver.class);
  configuration.setJdbcTypeForNull(JdbcType.NULL);
  sqlSessionFactory.setConfiguration(configuration);
  sqlSessionFactory.setPlugins(new Interceptor[]{
      new PaginationInterceptor(),
      new PerformanceInterceptor(),
      new OptimisticLockerInterceptor()
  });
  sqlSessionFactory.setGlobalConfig(globalConfiguration);
  return sqlSessionFactory.getObject();
}
com.baomidou.mybatisplus.pluginsPerformanceInterceptor<init>

Popular methods of PerformanceInterceptor

  • setFormat
  • setMaxTime

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now