Home > Back-end >  Configuration of yml file cannot work
Configuration of yml file cannot work

Time:09-19

Try their fledglings springboot want to be a project, yml incredibly don't take effect, according to the method of online took a long time no see, hope everyone to help see which there is something wrong with the

CodePudding user response:

1, plus exclude on @ SpringBootApplication annotations, cancel the automatic loading DataSourceAutoConfiguration
2, in the parent project of pom. The XML file to save all child module of jar dependencies, the mutual dependence on the pom in the module itself are stated in the XML file, suggested that using this method, advantage of each module dependency does not interfere with each other
  • Related