title: How to use Spring Security's JDBC authentication without using "authorities"?
body: <p>I have problem with authorities. </p>
  
  <blockquote>
    <p>Reason: PreparedStatementCallback; bad SQL grammar [select
    username,authority from authorities where username = ?]; nested
    exception is org.postgresql.util.PSQLException: ERROR: relation
    "authorities" does not exist Position: 32</p>
  </blockquote>
  
  <p>I don't want to implement authorities, but don't know how to disable it in JavaConfig in Spring.</p>
  
  <pre><code>@Override
  protected void configure(AuthenticationManagerBuilder auth)
          throws Exception {
      auth.jdbcAuthentication()
              .dataSource(dataSource)
              .usersByUsernameQuery(
                      "select username,password,'true' as enabled from users where username=?")
              .passwordEncoder(new ShaPasswordEncoder());
  }
  
  @Override
  protected void configure(HttpSecurity http) throws Exception {
      http.authorizeRequests().anyRequest().authenticated().and().formLogin().and().httpBasic();
  }
  </code></pre>