Ghostyjangle
Ghostyjangle
JCHJava Community | Help. Code. Learn.
Created by Ghostyjangle on 9/20/2024 in #java-help
[Spring] Should I have a custom Objectmapper as a static attribute in my service class?
I'll close the post
23 replies
JCHJava Community | Help. Code. Learn.
Created by Ghostyjangle on 9/20/2024 in #java-help
[Spring] Should I have a custom Objectmapper as a static attribute in my service class?
ah right, I'll keep a note on that then, thanks for the help.
23 replies
JCHJava Community | Help. Code. Learn.
Created by Ghostyjangle on 9/20/2024 in #java-help
[Spring] Should I have a custom Objectmapper as a static attribute in my service class?
fundamentally its weird for objmapper to not be static from what you mentioned, but other than that, are there any implications that I'm missing by not making it static?
23 replies
JCHJava Community | Help. Code. Learn.
Created by Ghostyjangle on 9/20/2024 in #java-help
[Spring] Should I have a custom Objectmapper as a static attribute in my service class?
I see it as being such that I can just change the objectmapper for some reason, I can just change it in the designated spring config class
23 replies
JCHJava Community | Help. Code. Learn.
Created by Ghostyjangle on 9/20/2024 in #java-help
[Spring] Should I have a custom Objectmapper as a static attribute in my service class?
oh sorry I forgot to mention that I want to have spring autowire the objectmapper instance to my service class. Or is this not the way I should do it?
23 replies