Skip to content

Commit 8e4676a

Browse files
committed
removed constants class
1 parent 86fdd54 commit 8e4676a

3 files changed

Lines changed: 11 additions & 41 deletions

File tree

src/main/java/com/generic/server/config/HttpConfig.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99
import org.springframework.security.web.csrf.CookieCsrfTokenRepository;
1010
import org.springframework.security.web.csrf.CsrfTokenRequestAttributeHandler;
1111

12-
import static com.generic.server.constants.Constants.*;
13-
1412
@Configuration
1513
public class HttpConfig {
1614

15+
private static final String[] SWAGGER_PATHS = {
16+
"/swagger-ui/**",
17+
"/v3/api-docs/**"
18+
};
19+
20+
private static final String[] ACTUATOR_CSRF_EXCLUDED_PATHS = {
21+
"/actuator/hawtio/**",
22+
"/actuator/jolokia/**",
23+
"/actuator/shutdown"
24+
};
25+
1726
@Bean
1827
public SecurityFilterChain localLoginAndRedirectFilterChain(HttpSecurity http) throws Exception {
1928

src/main/java/com/generic/server/constants/Constants.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/test/java/com/generic/server/constants/ConstantsTest.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)