Example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setCreateTableOnStartup

List of usage examples for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setCreateTableOnStartup

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setCreateTableOnStartup.

Prototype

public void setCreateTableOnStartup(boolean createTableOnStartup) 

Source Link

Document

Intended for convenience in debugging.

Usage

From source file:cn.edu.zjnu.acm.judge.config.TokenRepositoryConfiguration.java

@Bean
public PersistentTokenRepository persistentTokenRepository(JdbcTemplate jdbcTemplate) {
    JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
    jdbcTokenRepositoryImpl.setJdbcTemplate(jdbcTemplate);
    jdbcTokenRepositoryImpl.setCreateTableOnStartup(false);
    return jdbcTokenRepositoryImpl;
}