Skip to content

Commit 1190a05

Browse files
authored
chore: fix spring login example code (vaadin#3572)
Example code cannot be compiled, since it misses a throws statement.
1 parent 91a58a6 commit 1190a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/hilla/lit/guides/security/spring-login.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class SecurityConfig extends VaadinWebSecurity {
5050
}
5151
5252
@Override
53-
protected void configure(HttpSecurity http) {
53+
protected void configure(HttpSecurity http) throws Exception {
5454
// Set default security policy that permits Hilla internal requests and
5555
// denies all other
5656
http.authorizeHttpRequests(registry -> registry.requestMatchers(
@@ -85,7 +85,7 @@ Public views need to be added to the configuration before calling [methodname]`s
8585
[source,java]
8686
----
8787
@Override
88-
protected void configure(HttpSecurity http) {
88+
protected void configure(HttpSecurity http) throws Exception {
8989
http.authorizeHttpRequests(registry -> {
9090
registry.requestMatchers(new AntPathRequestMatcher("/public-view")).permitAll(); // custom matcher
9191
});

0 commit comments

Comments
 (0)