Question: can read the configuration file properties in the resource path but can not read yml profile
Because you can not read configuration yml configuration file, so you can not configure the bean, resulting in an error to start the project .
Solution:
Set path to the virtual machine configuration files are loaded in VM options in;
-Dspring.config.location=
-Djava.util.logging.config.file=C:\Users\用户\.IntelliJIdea2019.3\system\tomcat\jdong-parent\conf\logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx2048m -XX:MaxPermSize=2048m -Drebel.spring_plugin=true -Drebel.hibernate_plugin=true -Dspring.config.location=