IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

时间:2023-07-27 22:40:23
IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

运行审核流模块:

IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

在ActivitiServiceApplication模块日志报错:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-01-26 16:01:45.018 ERROR 10036 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activitiConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

log:

"C:\Program Files\Java\jdk1.8.0_131\bin\java" -XX:TieredStopAtLevel= -noverify -Dspring.output.ansi.enabled=always "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.1\lib\idea_rt.jar=53100:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.1\bin" -Dfile.encoding=UTF- -classpath "C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar;F:\mobcb\platform-activiti\platform-activiti-service\target\classes;D:\My Documents\.m2\org\springframework\boot\spring-boot\1.5.2.RELEASE\spring-boot-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-core\4.3.7.RELEASE\spring-core-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-context\4.3.7.RELEASE\spring-context-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-beans\4.3.7.RELEASE\spring-beans-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-expression\4.3.7.RELEASE\spring-expression-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-autoconfigure\1.5.2.RELEASE\spring-boot-autoconfigure-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-commons\1.2.0.RELEASE\spring-cloud-commons-1.2.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\security\spring-security-crypto\4.2.2.RELEASE\spring-security-crypto-4.2.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-web\1.5.2.RELEASE\spring-boot-starter-web-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter\1.5.2.RELEASE\spring-boot-starter-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-logging\1.5.2.RELEASE\spring-boot-starter-logging-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-tomcat\1.5.2.RELEASE\spring-boot-starter-tomcat-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\apache\tomcat\embed\tomcat-embed-core\8.5.11\tomcat-embed-core-8.5.11.jar;D:\My Documents\.m2\org\apache\tomcat\embed\tomcat-embed-el\8.5.11\tomcat-embed-el-8.5.11.jar;D:\My Documents\.m2\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.11\tomcat-embed-websocket-8.5.11.jar;D:\My Documents\.m2\org\hibernate\hibernate-validator\5.3.4.Final\hibernate-validator-5.3.4.Final.jar;D:\My Documents\.m2\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;D:\My Documents\.m2\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar;D:\My Documents\.m2\com\fasterxml\jackson\core\jackson-databind\2.8.7\jackson-databind-2.8.7.jar;D:\My Documents\.m2\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;D:\My Documents\.m2\com\fasterxml\jackson\core\jackson-core\2.8.7\jackson-core-2.8.7.jar;D:\My Documents\.m2\org\springframework\spring-web\4.3.7.RELEASE\spring-web-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-webmvc\4.3.7.RELEASE\spring-webmvc-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-starter-eureka\1.3.0.RELEASE\spring-cloud-starter-eureka-1.3.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-starter\1.2.0.RELEASE\spring-cloud-starter-1.2.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-context\1.2.0.RELEASE\spring-cloud-context-1.2.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\security\spring-security-rsa\1.0.3.RELEASE\spring-security-rsa-1.0.3.RELEASE.jar;D:\My Documents\.m2\org\bouncycastle\bcpkix-jdk15on\1.55\bcpkix-jdk15on-1.55.jar;D:\My Documents\.m2\org\bouncycastle\bcprov-jdk15on\1.55\bcprov-jdk15on-1.55.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-netflix-core\1.3.0.RELEASE\spring-cloud-netflix-core-1.3.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-netflix-eureka-client\1.3.0.RELEASE\spring-cloud-netflix-eureka-client-1.3.0.RELEASE.jar;D:\My Documents\.m2\com\netflix\eureka\eureka-client\1.6.2\eureka-client-1.6.2.jar;D:\My Documents\.m2\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\My Documents\.m2\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\My Documents\.m2\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\My Documents\.m2\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\My Documents\.m2\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\My Documents\.m2\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\My Documents\.m2\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\My Documents\.m2\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\My Documents\.m2\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;D:\My Documents\.m2\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\My Documents\.m2\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;D:\My Documents\.m2\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\My Documents\.m2\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\My Documents\.m2\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\My Documents\.m2\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\My Documents\.m2\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\My Documents\.m2\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\My Documents\.m2\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;D:\My Documents\.m2\org\apache\httpcomponents\httpcore\4.4.6\httpcore-4.4.6.jar;D:\My Documents\.m2\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\My Documents\.m2\javax\inject\javax.inject\1\javax.inject-1.jar;D:\My Documents\.m2\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\My Documents\.m2\com\netflix\eureka\eureka-core\1.6.2\eureka-core-1.6.2.jar;D:\My Documents\.m2\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\My Documents\.m2\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\My Documents\.m2\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-starter-archaius\1.3.0.RELEASE\spring-cloud-starter-archaius-1.3.0.RELEASE.jar;D:\My Documents\.m2\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\My Documents\.m2\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\My Documents\.m2\com\google\guava\guava\21.0\guava-21.0.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-starter-ribbon\1.3.0.RELEASE\spring-cloud-starter-ribbon-1.3.0.RELEASE.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon\2.2.2\ribbon-2.2.2.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon-transport\2.2.2\ribbon-transport-2.2.2.jar;D:\My Documents\.m2\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\My Documents\.m2\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\My Documents\.m2\com\netflix\hystrix\hystrix-core\1.5.10\hystrix-core-1.5.10.jar;D:\My Documents\.m2\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\My Documents\.m2\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\My Documents\.m2\io\netty\netty-codec-http\4.0.27.Final\netty-codec-http-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-codec\4.0.27.Final\netty-codec-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-handler\4.0.27.Final\netty-handler-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-transport-native-epoll\4.0.27.Final\netty-transport-native-epoll-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-common\4.0.27.Final\netty-common-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-buffer\4.0.27.Final\netty-buffer-4.0.27.Final.jar;D:\My Documents\.m2\io\netty\netty-transport\4.0.27.Final\netty-transport-4.0.27.Final.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon-core\2.2.2\ribbon-core-2.2.2.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon-httpclient\2.2.2\ribbon-httpclient-2.2.2.jar;D:\My Documents\.m2\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon-loadbalancer\2.2.2\ribbon-loadbalancer-2.2.2.jar;D:\My Documents\.m2\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\My Documents\.m2\io\reactivex\rxjava\1.1.10\rxjava-1.1.10.jar;D:\My Documents\.m2\com\netflix\ribbon\ribbon-eureka\2.2.2\ribbon-eureka-2.2.2.jar;D:\My Documents\.m2\org\slf4j\slf4j-api\1.7.24\slf4j-api-1.7.24.jar;D:\My Documents\.m2\com\thoughtworks\xstream\xstream\1.4.9\xstream-1.4.9.jar;D:\My Documents\.m2\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\My Documents\.m2\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-starter-config\1.3.0.RELEASE\spring-cloud-starter-config-1.3.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\cloud\spring-cloud-config-client\1.3.0.RELEASE\spring-cloud-config-client-1.3.0.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-actuator\1.5.2.RELEASE\spring-boot-starter-actuator-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-actuator\1.5.2.RELEASE\spring-boot-actuator-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-aop\1.5.2.RELEASE\spring-boot-starter-aop-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-aop\4.3.7.RELEASE\spring-aop-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\aspectj\aspectjweaver\1.8.8\aspectjweaver-1.8.8.jar;D:\My Documents\.m2\org\aspectj\aspectjrt\1.8.8\aspectjrt-1.8.8.jar;D:\My Documents\.m2\org\mybatis\mybatis\3.4.1\mybatis-3.4.1.jar;D:\My Documents\.m2\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.1.1\mybatis-spring-boot-starter-1.1.1.jar;D:\My Documents\.m2\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.1.1\mybatis-spring-boot-autoconfigure-1.1.1.jar;D:\My Documents\.m2\org\mybatis\mybatis-spring\1.3.0\mybatis-spring-1.3.0.jar;D:\My Documents\.m2\tk\mybatis\mapper\3.3.9\mapper-3.3.9.jar;D:\My Documents\.m2\javax\persistence\persistence-api\1.0\persistence-api-1.0.jar;D:\My Documents\.m2\mysql\mysql-connector-java\5.1.38\mysql-connector-java-5.1.38.jar;D:\My Documents\.m2\com\alibaba\druid\1.0.29\druid-1.0.29.jar;C:\Program Files\Java\jdk1.8.0_131\lib\jconsole.jar;C:\Program Files\Java\jdk1.8.0_131\lib\tools.jar;F:\mobcb\platform-activiti\platform-activiti-core\target\classes;F:\mobcb\platform-activiti\platform-activiti-common\target\classes;F:\mobcb\mobcb-platform\platform-core-base\target\classes;D:\My Documents\.m2\com\github\pagehelper\pagehelper\4.1.1\pagehelper-4.1.1.jar;D:\My Documents\.m2\com\github\jsqlparser\jsqlparser\0.9.4\jsqlparser-0.9.4.jar;F:\mobcb\platform-activiti\platform-activiti-service-client\target\classes;D:\My Documents\.m2\com\netflix\feign\feign-core\8.18.0\feign-core-8.18.0.jar;D:\My Documents\.m2\org\jvnet\animal-sniffer-annotation\1.0\animal-sniffer-annotation-1.0.jar;D:\My Documents\.m2\com\netflix\feign\feign-slf4j\8.18.0\feign-slf4j-8.18.0.jar;F:\mobcb\mobcb-platform\platform-service-common\target\classes;F:\mobcb\mobcb-platform\platform-service-base\target\classes;D:\My Documents\.m2\org\eclipse\persistence\javax.persistence\2.1.0\javax.persistence-2.1.0.jar;F:\mobcb\mobcb-platform\platform-common\common\target\classes;D:\My Documents\.m2\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;D:\My Documents\.m2\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:\My Documents\.m2\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;D:\My Documents\.m2\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.7\jackson-module-jaxb-annotations-2.8.7.jar;D:\My Documents\.m2\org\bouncycastle\bcprov-ext-jdk15on\1.55\bcprov-ext-jdk15on-1.55.jar;D:\My Documents\.m2\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;D:\My Documents\.m2\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;D:\My Documents\.m2\org\logback-extensions\logback-ext-spring\0.1.4\logback-ext-spring-0.1.4.jar;D:\My Documents\.m2\org\slf4j\log4j-over-slf4j\1.7.5\log4j-over-slf4j-1.7.5.jar;D:\My Documents\.m2\org\slf4j\jcl-over-slf4j\1.7.5\jcl-over-slf4j-1.7.5.jar;D:\My Documents\.m2\org\slf4j\jul-to-slf4j\1.7.5\jul-to-slf4j-1.7.5.jar;D:\My Documents\.m2\org\bgee\log4jdbc-log4j2\log4jdbc-log4j2-jdbc4\1.15\log4jdbc-log4j2-jdbc4-1.15.jar;D:\My Documents\.m2\org\apache\httpcomponents\httpmime\4.5.2\httpmime-4.5.2.jar;D:\My Documents\.m2\commons-io\commons-io\2.4\commons-io-2.4.jar;D:\My Documents\.m2\io\leopard\thirdparty\jcaptcha-core\2.0.0\jcaptcha-core-2.0.0.jar;D:\My Documents\.m2\io\leopard\thirdparty\jcaptcha-api\2.0.0\jcaptcha-api-2.0.0.jar;D:\My Documents\.m2\com\jhlabs\filters\2.0.235\filters-2.0.235.jar;D:\My Documents\.m2\org\apache\shiro\shiro-spring\1.2.4\shiro-spring-1.2.4.jar;D:\My Documents\.m2\org\apache\shiro\shiro-core\1.2.4\shiro-core-1.2.4.jar;D:\My Documents\.m2\commons-beanutils\commons-beanutils\1.9.2\commons-beanutils-1.9.2.jar;D:\My Documents\.m2\org\apache\shiro\shiro-web\1.2.4\shiro-web-1.2.4.jar;D:\My Documents\.m2\net\lingala\zip4j\zip4j\1.3.2\zip4j-1.3.2.jar;D:\My Documents\.m2\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\My Documents\.m2\net\sf\ehcache\ehcache\2.10.1\ehcache-2.10.1.jar;D:\My Documents\.m2\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;F:\mobcb\mobcb-platform\platform-error-service-client\target\classes;F:\mobcb\mobcb-platform\platform-common\rmq-common\target\classes;D:\My Documents\.m2\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\My Documents\.m2\org\apache\rocketmq\rocketmq-client\4.0.0-incubating\rocketmq-client-4.0.0-incubating.jar;D:\My Documents\.m2\org\apache\rocketmq\rocketmq-common\4.0.0-incubating\rocketmq-common-4.0.0-incubating.jar;D:\My Documents\.m2\org\apache\rocketmq\rocketmq-remoting\4.0.0-incubating\rocketmq-remoting-4.0.0-incubating.jar;D:\My Documents\.m2\com\alibaba\fastjson\1.2.29\fastjson-1.2.29.jar;D:\My Documents\.m2\io\netty\netty-all\4.0.30.Final\netty-all-4.0.30.Final.jar;F:\mobcb\mobcb-platform\platform-common\spring-common\target\classes;F:\mobcb\mobcb-platform\platform-common\cache-common\target\classes;D:\My Documents\.m2\org\springframework\data\spring-data-redis\1.7.1.RELEASE\spring-data-redis-1.7.1.RELEASE.jar;D:\My Documents\.m2\org\springframework\data\spring-data-keyvalue\1.2.1.RELEASE\spring-data-keyvalue-1.2.1.RELEASE.jar;D:\My Documents\.m2\org\springframework\data\spring-data-commons\1.13.1.RELEASE\spring-data-commons-1.13.1.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-oxm\4.3.7.RELEASE\spring-oxm-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-context-support\4.3.7.RELEASE\spring-context-support-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-data-redis\1.5.2.RELEASE\spring-boot-starter-data-redis-1.5.2.RELEASE.jar;D:\My Documents\.m2\redis\clients\jedis\2.7.3\jedis-2.7.3.jar;D:\My Documents\.m2\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;F:\mobcb\mobcb-platform\platform-service-client-base\target\classes;D:\My Documents\.m2\org\projectlombok\lombok\1.16.12\lombok-1.16.12.jar;D:\My Documents\.m2\org\activiti\activiti-spring-boot-starter-basic-mobcb\6.0.0\activiti-spring-boot-starter-basic-mobcb-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-engine\6.0.0\activiti-engine-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-bpmn-converter\6.0.0\activiti-bpmn-converter-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-bpmn-model\6.0.0\activiti-bpmn-model-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-process-validation\6.0.0\activiti-process-validation-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-image-generator\6.0.0\activiti-image-generator-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-dmn-api\6.0.0\activiti-dmn-api-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-dmn-model\6.0.0\activiti-dmn-model-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-form-model\6.0.0\activiti-form-model-6.0.0.jar;D:\My Documents\.m2\org\activiti\activiti-form-api\6.0.0\activiti-form-api-6.0.0.jar;D:\My Documents\.m2\org\apache\commons\commons-email\1.4\commons-email-1.4.jar;D:\My Documents\.m2\com\sun\mail\javax.mail\1.5.6\javax.mail-1.5.6.jar;D:\My Documents\.m2\javax\activation\activation\1.1.1\activation-1.1.1.jar;D:\My Documents\.m2\de\odysseus\juel\juel-api\2.2.7\juel-api-2.2.7.jar;D:\My Documents\.m2\de\odysseus\juel\juel-impl\2.2.7\juel-impl-2.2.7.jar;D:\My Documents\.m2\de\odysseus\juel\juel-spi\2.2.7\juel-spi-2.2.7.jar;D:\My Documents\.m2\joda-time\joda-time\2.9.7\joda-time-2.9.7.jar;D:\My Documents\.m2\org\activiti\activiti-spring\6.0.0\activiti-spring-6.0.0.jar;D:\My Documents\.m2\org\springframework\spring-jdbc\4.3.7.RELEASE\spring-jdbc-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-tx\4.3.7.RELEASE\spring-tx-4.3.7.RELEASE.jar;D:\My Documents\.m2\org\springframework\spring-orm\4.3.7.RELEASE\spring-orm-4.3.7.RELEASE.jar;D:\My Documents\.m2\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;D:\My Documents\.m2\commons-pool\commons-pool\1.6\commons-pool-1.6.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-jdbc\1.5.2.RELEASE\spring-boot-starter-jdbc-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\apache\tomcat\tomcat-jdbc\8.5.11\tomcat-jdbc-8.5.11.jar;D:\My Documents\.m2\org\apache\tomcat\tomcat-juli\8.5.11\tomcat-juli-8.5.11.jar;D:\My Documents\.m2\com\alibaba\druid-spring-boot-starter\1.1.3\druid-spring-boot-starter-1.1.3.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-starter-test\1.5.2.RELEASE\spring-boot-starter-test-1.5.2.RELEASE.jar;D:\My Documents\.m2\org\springframework\boot\spring-boot-test-autoconfigure\1.5.2.RELEASE\spring-boot-test-autoconfigure-1.5.2.RELEASE.jar;D:\My Documents\.m2\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;D:\My Documents\.m2\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;D:\My Documents\.m2\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;D:\My Documents\.m2\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;D:\My Documents\.m2\org\assertj\assertj-core\2.6.0\assertj-core-2.6.0.jar;D:\My Documents\.m2\org\mockito\mockito-core\1.10.19\mockito-core-1.10.19.jar;D:\My Documents\.m2\org\objenesis\objenesis\2.1\objenesis-2.1.jar;D:\My Documents\.m2\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\My Documents\.m2\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;D:\My Documents\.m2\org\skyscreamer\jsonassert\1.4.0\jsonassert-1.4.0.jar;D:\My Documents\.m2\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar" com.mobcb.platform.service.activiti.ActivitiServiceApplication
-- ::40.673 INFO --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@68267da0: startup date [Fri Jan :: CST ]; root of context hierarchy
-- ::40.855 INFO --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR- 'javax.inject.Inject' annotation found and supported for autowiring
-- ::41.018 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$452e8810] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.2.RELEASE) -- ::41.672 INFO --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8888
-- ::41.989 INFO --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=activiti, profiles=[dev], label=null, version=null, state=null
-- ::41.989 INFO --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='file:///F:/mobcb/config-repo/platform-config-ziyuan/application.yml']]]
-- ::41.993 INFO --- [ main] c.m.p.s.a.ActivitiServiceApplication : No active profile set, falling back to default profiles: default
-- ::42.007 INFO --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2453f95d: startup date [Fri Jan :: CST ]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@68267da0
-- ::42.845 WARN --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.mobcb.platform.service.activiti]' package. Please check your configuration.
-- ::43.067 WARN --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'myBatisMapperScannerConfig' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
-- ::43.208 INFO --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=eb2ef493--35ee-a1a9-0cb0e24a5a1b
-- ::43.226 INFO --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR- 'javax.inject.Inject' annotation found and supported for autowiring
-- ::43.285 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.mobcb.platform.client.activiti.ActivitiConfigServiceClient' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.285 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.mobcb.platform.client.activiti.ActivitiProcessServiceClient' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.286 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.mobcb.platform.client.activiti.ModelProcessConfigServiceClient' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.287 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.mobcb.platform.client.activiti.OperateGroupManageServiceClient' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.288 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.mobcb.platform.client.system.ConfigErrorInfoServiceClient' of type [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.409 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.579 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties' of type [org.springframework.boot.autoconfigure.data.redis.RedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.596 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'redisConfig' of type [com.mobcb.platform.config.RedisConfig$$EnhancerBySpringCGLIB$$716fe468] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.611 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cache.annotation.ProxyCachingConfiguration' of type [org.springframework.cache.annotation.ProxyCachingConfiguration$$EnhancerBySpringCGLIB$$7226bb31] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.675 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration' of type [org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration$$EnhancerBySpringCGLIB$$5b412b54] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::43.696 INFO --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$452e8810] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
-- ::44.123 INFO --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): (http)
-- ::44.130 INFO --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
-- ::44.131 INFO --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.
-- ::44.279 INFO --- [ost-startStop-] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
-- ::44.279 INFO --- [ost-startStop-] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in ms
-- ::44.781 INFO --- [ost-startStop-] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
-- ::44.782 INFO --- [ost-startStop-] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'statViewServlet' to [/druid/*]
2018-01-26 16:01:44.786 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webStatFilter' to urls: [/*]
2018-01-26 16:01:44.787 INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*]
2018-01-26 16:01:44.889 WARN 10036 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activitiConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
2018-01-26 16:01:44.890 INFO 10036 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2018-01-26 16:01:44.934 WARN 10036 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2018-01-26 16:01:45.001 INFO 10036 --- [ main] utoConfigurationReportLoggingInitializer : Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-01-26 16:01:45.018 ERROR 10036 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activitiConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at com.mobcb.platform.service.activiti.ActivitiServiceApplication.main(ActivitiServiceApplication.java:33) [classes/:na]
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:172) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:831) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1086) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
... 17 common frames omitted Process finished with exit code 1

解决方法:

 原因是数据库的url没有配置。

在于该模块的yml配置文件的服务器数据没有部署。需要在当前分支中添加该模块的yml文件,之后修改数据库url和端口。

yml配置文件代码:

 server:
2 port: 9123
3
4 # SPRING PROFILES
5 spring:
6 # HTTP ENCODING
7 http:
8 encoding.charset: UTF-8
9 encoding.enable: true
10 encoding.force: true
11 redis:
12 host: 192.168.0.13
13 database: 5
14 pool:
15 maxIdle: 10
16 maxWait: 3000
17
18 # DATASOURCE
19 datasource:
20 name: druidDataSource
21 url: jdbc:mysql://数据库url:端口号/mob_activiti?useUnicode=true&characterEncoding=utf-8
22 username: root
23 password: mobcb
24 # 使用druid数据源
25 type: com.alibaba.druid.pool.DruidDataSource
26 driverClassName: com.mysql.jdbc.Driver
27 filters: stat
28 maxActive: 20
29 initialSize: 1
30 maxWait: 60000
31 minIdle: 1
32 timeBetweenEvictionRunsMillis: 60000
33 minEvictableIdleTimeMillis: 300000
34 validationQuery: select 'x'
35 testWhileIdle: true
36 testOnBorrow: false
37 testOnReturn: false
38 poolPreparedStatements: true
39 maxOpenPreparedStatements: 20
40 # activiti:
41 # jpaEnabled: false
42 # checkProcessDefinitions: false
43
44
45 eureka:
46 client:
47 serviceUrl:
48 defaultZone: http://localhost:8761/eureka/
49 instance:
50 preferIpAddress: true
51
52 #mybatis config
53 mybatis:
54 config-location: classpath:mybatis-config.xml
55 type-aliases-package: com.mobcb.platform.entity
56 mapper-locations: classpath*:mappers/*.xml

修改数据库的ip和端口号:

IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

之后重新启动该模块,启动成功:

IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"