Skip to content

Commit

Permalink
fix: allow extending WebSecurityConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed Sep 4, 2023
1 parent d7d3e61 commit 33fd77c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package de.terrestris.shogun.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
Expand All @@ -32,7 +34,7 @@ public interface WebSecurityConfig {
};

@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
@ConditionalOnMissingBean
default SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
customHttpConfiguration(http);
return http.getOrBuild();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public ObjectMapper objectMapper() {
public ObjectMapper get() {
return objectMapper();
}

public void init(ObjectMapper objectMapper) {
if (!initialized) {
GeometryFactory geomFactory = new GeometryFactory(new PrecisionModel(coordinatePrecisionScale), srid);
Expand Down

0 comments on commit 33fd77c

Please sign in to comment.