Dozer is used in Springboot. How to avoid dozer searching its contract configuration file dozer.properties every time the application starts?

  java, question

As the topic is. Dozer mapper was added to my project, and gradle relied on:compile("net.sf.dozer:dozer:5.4.0"), I did not set up the file dozer.properties, but directly configured a javabean with the following code:

@Configuration
 public class DozerConfig {
 
 @Bean
 public DozerBeanMapperFactoryBean mapper() {
 return new DozerBeanMapperFactoryBean();
 bracket
 bracket

, and then the question is: Every time I start this application, dozer will look up the dozer.properties file, which takes about half a minute. Is there any way I can get rid of this search process through configuration? Related contents of startup log:

2017-06-06 20:57:49.908 [restartedMain] INFO  o.s.b.c.e.ServletRegistrationBean -  Mapping servlet: 'dispatcherServlet' to [/]
 2017-06-06 20:58:14.274 [restartedMain] INFO  org.dozer.config.GlobalSettings -  Trying to find Dozer configuration file: dozer.properties
 2017-06-06 20:58:14.281 [restartedMain] WARN  org.dozer.config.GlobalSettings -  Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
 2017-06-06 20:58:14.283 [restartedMain] INFO  org.dozer.DozerInitializer -  Initializing Dozer. Version: 5.4.0, Thread Name: restartedMain

Dozer’s configuration file cannot be omitted, and the object relationship mapping should be defined in an xml file. If you are in the project integration phase, you can consider using mapstruct.