Dozer is used in Springboot. How to avoid dozer searching its contract configuration file 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, but directly configured a javabean with the following code:

 public class DozerConfig {
 public DozerBeanMapperFactoryBean mapper() {
 return new DozerBeanMapperFactoryBean();

, and then the question is: Every time I start this application, dozer will look up the 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:
 2017-06-06 20:58:14.281 [restartedMain] WARN  org.dozer.config.GlobalSettings -  Dozer configuration file not found:  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.