0

I config the json date format in application.properties with annotation

//in application.properties
spring.jackson.date-format=yyyy-MM-dd

@SpringBootApplication(scanBasePackages = (arrayOf("com.khidi")))

the json date format not working,but I remove scanBasePages, it's working. I need set the scanBasePages, because some bean in another package, how to fix it. thx.

tedeum
  • 185
  • 3
  • 14
  • Show the code where you setup object mapper. I think you have such. Or many some other custom configuration is ruining it for you – varren Dec 08 '17 at 04:23
  • I found that a piece of code conflict the config @Configuration class CustomRepositoryRestMvcConfiguration : RepositoryRestMvcConfiguration() { } – tedeum Dec 09 '17 at 06:44

1 Answers1

0

I found that a piece of code conflict the config

@Configuration
class CustomRepositoryRestMvcConfiguration : RepositoryRestMvcConfiguration() {

}
tedeum
  • 185
  • 3
  • 14