Skip to content

Commit ed1711a

Browse files
authored
Sonar: Remove the declaration of thrown exception java.lang.Exception (#32063)
1 parent ea1fc3b commit ed1711a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/spring-boot/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public class SecurityConfiguration {
153153
<%_ } _%>
154154

155155
@Bean
156-
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
156+
public SecurityFilterChain filterChain(HttpSecurity http)<%_ if (!springBoot4) { _%> throws Exception<%_ } _%> {
157157
http
158158
<%_ if (!applicationTypeMicroservice) { _%>
159159
.cors(withDefaults())

0 commit comments

Comments
 (0)