-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize the Jackson2ObjectMapperBuilder instead of replacing it #3838
Conversation
.featuresToDisable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) | ||
.findModulesViaServiceLoader(true) | ||
.modulesToInstall(module); | ||
public ObjectMapper myJacksonObjectMapper() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the name to jacksonObjectMapper
or customJacksonObjectMapper
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes !
Do you remove the old serializers for already created projects? |
I only keep the serializer for ZonedDateTime. |
I mean the physical files in |
Oh, yes ! Good point ! I'll add them ! |
also set INDENT_INPUT to true in dev profile Fix jhipster#3830
*/ | ||
function cleanupOldServerFiles(generator, javaDir, testDir) { | ||
if (generator.isJhipsterVersionLessThan('3.4.3')) { | ||
generator.removeFile(javaDir + 'domain/util/JSR310DateTimeSerializer.java'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to use generator.fs.delete()
but there is currently an issue (yeoman/generator#950) so we can see about that later.
Lots of deleted code, cool! |
also set INDENT_INPUT to true in dev profile
Fix #3830