We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32da1d2 commit 335368aCopy full SHA for 335368a
1 file changed
src/main/java/de/kaleidox/workbench/WorkbenchApplication.java
@@ -1,5 +1,7 @@
1
package de.kaleidox.workbench;
2
3
+import com.fasterxml.jackson.core.JsonFactoryBuilder;
4
+import com.fasterxml.jackson.core.StreamReadFeature;
5
import com.fasterxml.jackson.databind.ObjectMapper;
6
import de.kaleidox.workbench.model.config.AppConfig;
7
import lombok.extern.java.Log;
@@ -36,6 +38,13 @@ public static void main(String[] args) {
36
38
SpringApplication.run(WorkbenchApplication.class, args);
37
39
}
40
41
+ @Bean
42
+ public ObjectMapper objectMapper() {
43
+ return new ObjectMapper(new JsonFactoryBuilder() {{
44
+ enable(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION);
45
+ }}.build());
46
+ }
47
+
48
@Bean
49
public File configDir() {
50
return new File("/srv/workbench/");
0 commit comments