Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-adaptive-training
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-java
kypo-adaptive-training
Merge requests
!9
Resolve "Create missing service classes"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Create missing service classes"
16-create-missing-service-classes
into
8-integrate-the-necessary-parts-of-the-kypo2-training
Overview
0
Commits
12
Pipelines
0
Changes
27
Merged
Dominik Pilár
requested to merge
16-create-missing-service-classes
into
8-integrate-the-necessary-parts-of-the-kypo2-training
4 years ago
Overview
0
Commits
12
Pipelines
0
Changes
2
Expand
Closes
#16 (closed)
Edited
4 years ago
by
Dominik Pilár
👍
0
👎
0
Merge request reports
Viewing commit
10885fff
Prev
Next
Show latest version
2 files
+
35
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
10885fff
Added elasticserch-documents dependency v1.0.16
· 10885fff
Dominik Pilar
authored
4 years ago
src/main/java/cz/muni/ics/kypo/training/adaptive/config/ObjectMapperConfigElasticsearch.java
0 → 100644
+
30
−
0
Options
package
cz.muni.csirt.kypo.elasticsearch.service.config
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.PropertyNamingStrategy
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* The type Object mapper config elasticsearch.
*/
@Configuration
public
class
ObjectMapperConfigElasticsearch
{
/**
* Object mapper object mapper.
*
* @return the object mapper
*/
@Bean
(
"objMapperForElasticsearch"
)
public
ObjectMapper
objectMapper
()
{
ObjectMapper
objectMapper
=
new
ObjectMapper
();
objectMapper
.
setPropertyNamingStrategy
(
PropertyNamingStrategy
.
SNAKE_CASE
);
objectMapper
.
registerModule
(
new
JavaTimeModule
());
objectMapper
.
disable
(
SerializationFeature
.
WRITE_DATES_AS_TIMESTAMPS
);
return
objectMapper
;
}
}
Loading