Skip to content

Commit 28dff45

Browse files
eleftheriasAyush Kohli
authored and
Ayush Kohli
committed
Fix typos in FAQ docs
1 parent 4bd08bc commit 28dff45

File tree

1 file changed

+8
-7
lines changed
  • docs/manual/src/docs/asciidoc/_includes/servlet/appendix

1 file changed

+8
-7
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/appendix/faq.adoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -545,17 +545,18 @@ To use JDBC instead, you can implement the interface yourself, using whatever SQ
545545
JdbcTemplate template;
546546
547547
List<GrantedAuthority> getGrantedAuthorities(DirContextOperations userData, String username) {
548-
List<GrantedAuthority> = template.query("select role from roles where username = ?",
549-
new String[] {username},
550-
new RowMapper<GrantedAuthority>() {
551-
/**
548+
return template.query("select role from roles where username = ?",
549+
new String[] {username},
550+
new RowMapper<GrantedAuthority>() {
551+
/**
552552
* We're assuming here that you're using the standard convention of using the role
553553
* prefix "ROLE_" to mark attributes which are supported by Spring Security's RoleVoter.
554554
*/
555+
@Override
555556
public GrantedAuthority mapRow(ResultSet rs, int rowNum) throws SQLException {
556-
return new SimpleGrantedAuthority("ROLE_" + rs.getString(1);
557+
return new SimpleGrantedAuthority("ROLE_" + rs.getString(1));
557558
}
558-
}
559+
});
559560
}
560561
}
561562
@@ -580,7 +581,7 @@ The processor class would look like this:
580581
[source,java]
581582
----
582583
583-
public class BeanPostProcessor implements BeanPostProcessor {
584+
public class CustomBeanPostProcessor implements BeanPostProcessor {
584585
585586
public Object postProcessAfterInitialization(Object bean, String name) {
586587
if (bean instanceof UsernamePasswordAuthenticationFilter) {

0 commit comments

Comments
 (0)