Erlo

IDEA报错: 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   阅读:2936次   来源:博客园
页面报错
赞3

运行审核流模块:

 

在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}"

 

log:

"C:Program FilesJavajdk1.8.0_131binjava" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:C:Program FilesJetBrainsIntelliJ IDEA 2017.1.1libidea_rt.jar=53100:C:Program FilesJetBrainsIntelliJ IDEA 2017.1.1bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJavajdk1.8.0_131jrelibcharsets.jar;C:Program FilesJavajdk1.8.0_131jrelibdeploy.jar;C:Program FilesJavajdk1.8.0_131jrelibextaccess-bridge-64.jar;C:Program FilesJavajdk1.8.0_131jrelibextcldrdata.jar;C:Program FilesJavajdk1.8.0_131jrelibextdnsns.jar;C:Program FilesJavajdk1.8.0_131jrelibextjaccess.jar;C:Program FilesJavajdk1.8.0_131jrelibextjfxrt.jar;C:Program FilesJavajdk1.8.0_131jrelibextlocaledata.jar;C:Program FilesJavajdk1.8.0_131jrelibextnashorn.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunec.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunjce_provider.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunmscapi.jar;C:Program FilesJavajdk1.8.0_131jrelibextsunpkcs11.jar;C:Program FilesJavajdk1.8.0_131jrelibextzipfs.jar;C:Program FilesJavajdk1.8.0_131jrelibjavaws.jar;C:Program FilesJavajdk1.8.0_131jrelibjce.jar;C:Program FilesJavajdk1.8.0_131jrelibjfr.jar;C:Program FilesJavajdk1.8.0_131jrelibjfxswt.jar;C:Program FilesJavajdk1.8.0_131jrelibjsse.jar;C:Program FilesJavajdk1.8.0_131jrelibmanagement-agent.jar;C:Program FilesJavajdk1.8.0_131jrelibplugin.jar;C:Program FilesJavajdk1.8.0_131jrelibresources.jar;C:Program FilesJavajdk1.8.0_131jrelibrt.jar;F:mobcbplatform-activitiplatform-activiti-servicetargetclasses;D:My Documents.m2orgspringframeworkbootspring-boot1.5.2.RELEASEspring-boot-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-core4.3.7.RELEASEspring-core-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-context4.3.7.RELEASEspring-context-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-beans4.3.7.RELEASEspring-beans-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-expression4.3.7.RELEASEspring-expression-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-autoconfigure1.5.2.RELEASEspring-boot-autoconfigure-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-commons1.2.0.RELEASEspring-cloud-commons-1.2.0.RELEASE.jar;D:My Documents.m2orgspringframeworksecurityspring-security-crypto4.2.2.RELEASEspring-security-crypto-4.2.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-web1.5.2.RELEASEspring-boot-starter-web-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter1.5.2.RELEASEspring-boot-starter-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-logging1.5.2.RELEASEspring-boot-starter-logging-1.5.2.RELEASE.jar;D:My Documents.m2orgyamlsnakeyaml1.17snakeyaml-1.17.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-tomcat1.5.2.RELEASEspring-boot-starter-tomcat-1.5.2.RELEASE.jar;D:My Documents.m2orgapachetomcatembedtomcat-embed-core8.5.11tomcat-embed-core-8.5.11.jar;D:My Documents.m2orgapachetomcatembedtomcat-embed-el8.5.11tomcat-embed-el-8.5.11.jar;D:My Documents.m2orgapachetomcatembedtomcat-embed-websocket8.5.11tomcat-embed-websocket-8.5.11.jar;D:My Documents.m2orghibernatehibernate-validator5.3.4.Finalhibernate-validator-5.3.4.Final.jar;D:My Documents.m2orgjbossloggingjboss-logging3.3.0.Finaljboss-logging-3.3.0.Final.jar;D:My Documents.m2comfasterxmlclassmate1.3.3classmate-1.3.3.jar;D:My Documents.m2comfasterxmljacksoncorejackson-databind2.8.7jackson-databind-2.8.7.jar;D:My Documents.m2comfasterxmljacksoncorejackson-annotations2.8.0jackson-annotations-2.8.0.jar;D:My Documents.m2comfasterxmljacksoncorejackson-core2.8.7jackson-core-2.8.7.jar;D:My Documents.m2orgspringframeworkspring-web4.3.7.RELEASEspring-web-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-webmvc4.3.7.RELEASEspring-webmvc-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-starter-eureka1.3.0.RELEASEspring-cloud-starter-eureka-1.3.0.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-starter1.2.0.RELEASEspring-cloud-starter-1.2.0.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-context1.2.0.RELEASEspring-cloud-context-1.2.0.RELEASE.jar;D:My Documents.m2orgspringframeworksecurityspring-security-rsa1.0.3.RELEASEspring-security-rsa-1.0.3.RELEASE.jar;D:My Documents.m2orgbouncycastlebcpkix-jdk15on1.55bcpkix-jdk15on-1.55.jar;D:My Documents.m2orgbouncycastlebcprov-jdk15on1.55bcprov-jdk15on-1.55.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-netflix-core1.3.0.RELEASEspring-cloud-netflix-core-1.3.0.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-netflix-eureka-client1.3.0.RELEASEspring-cloud-netflix-eureka-client-1.3.0.RELEASE.jar;D:My Documents.m2comnetflixeurekaeureka-client1.6.2eureka-client-1.6.2.jar;D:My Documents.m2orgcodehausjettisonjettison1.3.7jettison-1.3.7.jar;D:My Documents.m2staxstax-api1.0.1stax-api-1.0.1.jar;D:My Documents.m2comnetflixnetflix-commonsnetflix-eventbus.3.0netflix-eventbus-0.3.0.jar;D:My Documents.m2comnetflixnetflix-commonsnetflix-infix.3.0netflix-infix-0.3.0.jar;D:My Documents.m2commons-jxpathcommons-jxpath1.3commons-jxpath-1.3.jar;D:My Documents.m2organtlrantlr-runtime3.4antlr-runtime-3.4.jar;D:My Documents.m2organtlrstringtemplate3.2.1stringtemplate-3.2.1.jar;D:My Documents.m2antlrantlr2.7.7antlr-2.7.7.jar;D:My Documents.m2comgooglecodegsongson2.8.0gson-2.8.0.jar;D:My Documents.m2orgapachecommonscommons-math2.2commons-math-2.2.jar;D:My Documents.m2comnetflixarchaiusarchaius-core.7.4archaius-core-0.7.4.jar;D:My Documents.m2javaxwsrsjsr311-api1.1.1jsr311-api-1.1.1.jar;D:My Documents.m2comnetflixservoservo-core.10.1servo-core-0.10.1.jar;D:My Documents.m2comnetflixservoservo-internal.10.1servo-internal-0.10.1.jar;D:My Documents.m2comsunjerseyjersey-core1.19.1jersey-core-1.19.1.jar;D:My Documents.m2comsunjerseyjersey-client1.19.1jersey-client-1.19.1.jar;D:My Documents.m2comsunjerseycontribsjersey-apache-client41.19.1jersey-apache-client4-1.19.1.jar;D:My Documents.m2orgapachehttpcomponentshttpclient4.5.2httpclient-4.5.2.jar;D:My Documents.m2orgapachehttpcomponentshttpcore4.4.6httpcore-4.4.6.jar;D:My Documents.m2comgoogleinjectguice4.1.0guice-4.1.0.jar;D:My Documents.m2javaxinjectjavax.inject1javax.inject-1.jar;D:My Documents.m2aopallianceaopalliance1.0aopalliance-1.0.jar;D:My Documents.m2comnetflixeurekaeureka-core1.6.2eureka-core-1.6.2.jar;D:My Documents.m2orgcodehauswoodstoxwoodstox-core-asl4.4.1woodstox-core-asl-4.4.1.jar;D:My Documents.m2javaxxmlstreamstax-api1.0-2stax-api-1.0-2.jar;D:My Documents.m2orgcodehauswoodstoxstax2-api3.1.4stax2-api-3.1.4.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-starter-archaius1.3.0.RELEASEspring-cloud-starter-archaius-1.3.0.RELEASE.jar;D:My Documents.m2commons-configurationcommons-configuration1.8commons-configuration-1.8.jar;D:My Documents.m2commons-langcommons-lang2.6commons-lang-2.6.jar;D:My Documents.m2comgoogleguavaguava21.0guava-21.0.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-starter-ribbon1.3.0.RELEASEspring-cloud-starter-ribbon-1.3.0.RELEASE.jar;D:My Documents.m2comnetflixribbonribbon2.2.2ribbon-2.2.2.jar;D:My Documents.m2comnetflixribbonribbon-transport2.2.2ribbon-transport-2.2.2.jar;D:My Documents.m2ioreactivexrxnetty-contexts.4.9rxnetty-contexts-0.4.9.jar;D:My Documents.m2ioreactivexrxnetty-servo.4.9rxnetty-servo-0.4.9.jar;D:My Documents.m2comnetflixhystrixhystrix-core1.5.10hystrix-core-1.5.10.jar;D:My Documents.m2orghdrhistogramHdrHistogram2.1.9HdrHistogram-2.1.9.jar;D:My Documents.m2ioreactivexrxnetty.4.9rxnetty-0.4.9.jar;D:My Documents.m2ionettynetty-codec-http4.0.27.Finalnetty-codec-http-4.0.27.Final.jar;D:My Documents.m2ionettynetty-codec4.0.27.Finalnetty-codec-4.0.27.Final.jar;D:My Documents.m2ionettynetty-handler4.0.27.Finalnetty-handler-4.0.27.Final.jar;D:My Documents.m2ionettynetty-transport-native-epoll4.0.27.Finalnetty-transport-native-epoll-4.0.27.Final.jar;D:My Documents.m2ionettynetty-common4.0.27.Finalnetty-common-4.0.27.Final.jar;D:My Documents.m2ionettynetty-buffer4.0.27.Finalnetty-buffer-4.0.27.Final.jar;D:My Documents.m2ionettynetty-transport4.0.27.Finalnetty-transport-4.0.27.Final.jar;D:My Documents.m2comnetflixribbonribbon-core2.2.2ribbon-core-2.2.2.jar;D:My Documents.m2comnetflixribbonribbon-httpclient2.2.2ribbon-httpclient-2.2.2.jar;D:My Documents.m2comnetflixnetflix-commonsnetflix-commons-util.1.1netflix-commons-util-0.1.1.jar;D:My Documents.m2comnetflixribbonribbon-loadbalancer2.2.2ribbon-loadbalancer-2.2.2.jar;D:My Documents.m2comnetflixnetflix-commonsnetflix-statistics.1.1netflix-statistics-0.1.1.jar;D:My Documents.m2ioreactivexrxjava1.1.10rxjava-1.1.10.jar;D:My Documents.m2comnetflixribbonribbon-eureka2.2.2ribbon-eureka-2.2.2.jar;D:My Documents.m2orgslf4jslf4j-api1.7.24slf4j-api-1.7.24.jar;D:My Documents.m2comthoughtworksxstreamxstream1.4.9xstream-1.4.9.jar;D:My Documents.m2xmlpullxmlpull1.1.3.1xmlpull-1.1.3.1.jar;D:My Documents.m2xpp3xpp3_min1.1.4cxpp3_min-1.1.4c.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-starter-config1.3.0.RELEASEspring-cloud-starter-config-1.3.0.RELEASE.jar;D:My Documents.m2orgspringframeworkcloudspring-cloud-config-client1.3.0.RELEASEspring-cloud-config-client-1.3.0.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-actuator1.5.2.RELEASEspring-boot-starter-actuator-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-actuator1.5.2.RELEASEspring-boot-actuator-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-aop1.5.2.RELEASEspring-boot-starter-aop-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-aop4.3.7.RELEASEspring-aop-4.3.7.RELEASE.jar;D:My Documents.m2orgaspectjaspectjweaver1.8.8aspectjweaver-1.8.8.jar;D:My Documents.m2orgaspectjaspectjrt1.8.8aspectjrt-1.8.8.jar;D:My Documents.m2orgmybatismybatis3.4.1mybatis-3.4.1.jar;D:My Documents.m2orgmybatisspringbootmybatis-spring-boot-starter1.1.1mybatis-spring-boot-starter-1.1.1.jar;D:My Documents.m2orgmybatisspringbootmybatis-spring-boot-autoconfigure1.1.1mybatis-spring-boot-autoconfigure-1.1.1.jar;D:My Documents.m2orgmybatismybatis-spring1.3.0mybatis-spring-1.3.0.jar;D:My Documents.m2tkmybatismapper3.3.9mapper-3.3.9.jar;D:My Documents.m2javaxpersistencepersistence-api1.0persistence-api-1.0.jar;D:My Documents.m2mysqlmysql-connector-java5.1.38mysql-connector-java-5.1.38.jar;D:My Documents.m2comalibabadruid1.0.29druid-1.0.29.jar;C:Program FilesJavajdk1.8.0_131libjconsole.jar;C:Program FilesJavajdk1.8.0_131libtools.jar;F:mobcbplatform-activitiplatform-activiti-coretargetclasses;F:mobcbplatform-activitiplatform-activiti-commontargetclasses;F:mobcbmobcb-platformplatform-core-basetargetclasses;D:My Documents.m2comgithubpagehelperpagehelper4.1.1pagehelper-4.1.1.jar;D:My Documents.m2comgithubjsqlparserjsqlparser.9.4jsqlparser-0.9.4.jar;F:mobcbplatform-activitiplatform-activiti-service-clienttargetclasses;D:My Documents.m2comnetflixfeignfeign-core8.18.0feign-core-8.18.0.jar;D:My Documents.m2orgjvnetanimal-sniffer-annotation1.0animal-sniffer-annotation-1.0.jar;D:My Documents.m2comnetflixfeignfeign-slf4j8.18.0feign-slf4j-8.18.0.jar;F:mobcbmobcb-platformplatform-service-commontargetclasses;F:mobcbmobcb-platformplatform-service-basetargetclasses;D:My Documents.m2orgeclipsepersistencejavax.persistence2.1.0javax.persistence-2.1.0.jar;F:mobcbmobcb-platformplatform-commoncommontargetclasses;D:My Documents.m2commons-httpclientcommons-httpclient3.1commons-httpclient-3.1.jar;D:My Documents.m2commons-codeccommons-codec1.10commons-codec-1.10.jar;D:My Documents.m2orgapachecommonscommons-lang33.4commons-lang3-3.4.jar;D:My Documents.m2comfasterxmljacksonmodulejackson-module-jaxb-annotations2.8.7jackson-module-jaxb-annotations-2.8.7.jar;D:My Documents.m2orgbouncycastlebcprov-ext-jdk15on1.55bcprov-ext-jdk15on-1.55.jar;D:My Documents.m2chqoslogbacklogback-classic1.1.11logback-classic-1.1.11.jar;D:My Documents.m2chqoslogbacklogback-core1.1.11logback-core-1.1.11.jar;D:My Documents.m2orglogback-extensionslogback-ext-spring.1.4logback-ext-spring-0.1.4.jar;D:My Documents.m2orgslf4jlog4j-over-slf4j1.7.5log4j-over-slf4j-1.7.5.jar;D:My Documents.m2orgslf4jjcl-over-slf4j1.7.5jcl-over-slf4j-1.7.5.jar;D:My Documents.m2orgslf4jjul-to-slf4j1.7.5jul-to-slf4j-1.7.5.jar;D:My Documents.m2orgbgeelog4jdbc-log4j2log4jdbc-log4j2-jdbc41.15log4jdbc-log4j2-jdbc4-1.15.jar;D:My Documents.m2orgapachehttpcomponentshttpmime4.5.2httpmime-4.5.2.jar;D:My Documents.m2commons-iocommons-io2.4commons-io-2.4.jar;D:My Documents.m2ioleopardthirdpartyjcaptcha-core2.0.0jcaptcha-core-2.0.0.jar;D:My Documents.m2ioleopardthirdpartyjcaptcha-api2.0.0jcaptcha-api-2.0.0.jar;D:My Documents.m2comjhlabsfilters2.0.235filters-2.0.235.jar;D:My Documents.m2orgapacheshiroshiro-spring1.2.4shiro-spring-1.2.4.jar;D:My Documents.m2orgapacheshiroshiro-core1.2.4shiro-core-1.2.4.jar;D:My Documents.m2commons-beanutilscommons-beanutils1.9.2commons-beanutils-1.9.2.jar;D:My Documents.m2orgapacheshiroshiro-web1.2.4shiro-web-1.2.4.jar;D:My Documents.m2netlingalazip4jzip4j1.3.2zip4j-1.3.2.jar;D:My Documents.m2commons-loggingcommons-logging1.2commons-logging-1.2.jar;D:My Documents.m2netsfehcacheehcache2.10.1ehcache-2.10.1.jar;D:My Documents.m2javaxvalidationvalidation-api1.1.0.Finalvalidation-api-1.1.0.Final.jar;F:mobcbmobcb-platformplatform-error-service-clienttargetclasses;F:mobcbmobcb-platformplatform-commonrmq-commontargetclasses;D:My Documents.m2commons-collectionscommons-collections3.2.2commons-collections-3.2.2.jar;D:My Documents.m2orgapacherocketmqrocketmq-client4.0.0-incubatingrocketmq-client-4.0.0-incubating.jar;D:My Documents.m2orgapacherocketmqrocketmq-common4.0.0-incubatingrocketmq-common-4.0.0-incubating.jar;D:My Documents.m2orgapacherocketmqrocketmq-remoting4.0.0-incubatingrocketmq-remoting-4.0.0-incubating.jar;D:My Documents.m2comalibabafastjson1.2.29fastjson-1.2.29.jar;D:My Documents.m2ionettynetty-all4.0.30.Finalnetty-all-4.0.30.Final.jar;F:mobcbmobcb-platformplatform-commonspring-commontargetclasses;F:mobcbmobcb-platformplatform-commoncache-commontargetclasses;D:My Documents.m2orgspringframeworkdataspring-data-redis1.7.1.RELEASEspring-data-redis-1.7.1.RELEASE.jar;D:My Documents.m2orgspringframeworkdataspring-data-keyvalue1.2.1.RELEASEspring-data-keyvalue-1.2.1.RELEASE.jar;D:My Documents.m2orgspringframeworkdataspring-data-commons1.13.1.RELEASEspring-data-commons-1.13.1.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-oxm4.3.7.RELEASEspring-oxm-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-context-support4.3.7.RELEASEspring-context-support-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-data-redis1.5.2.RELEASEspring-boot-starter-data-redis-1.5.2.RELEASE.jar;D:My Documents.m2redisclientsjedis2.7.3jedis-2.7.3.jar;D:My Documents.m2orgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;F:mobcbmobcb-platformplatform-service-client-basetargetclasses;D:My Documents.m2orgprojectlomboklombok1.16.12lombok-1.16.12.jar;D:My Documents.m2orgactivitiactiviti-spring-boot-starter-basic-mobcb6.0.0activiti-spring-boot-starter-basic-mobcb-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-engine6.0.0activiti-engine-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-bpmn-converter6.0.0activiti-bpmn-converter-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-bpmn-model6.0.0activiti-bpmn-model-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-process-validation6.0.0activiti-process-validation-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-image-generator6.0.0activiti-image-generator-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-dmn-api6.0.0activiti-dmn-api-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-dmn-model6.0.0activiti-dmn-model-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-form-model6.0.0activiti-form-model-6.0.0.jar;D:My Documents.m2orgactivitiactiviti-form-api6.0.0activiti-form-api-6.0.0.jar;D:My Documents.m2orgapachecommonscommons-email1.4commons-email-1.4.jar;D:My Documents.m2comsunmailjavax.mail1.5.6javax.mail-1.5.6.jar;D:My Documents.m2javaxactivationactivation1.1.1activation-1.1.1.jar;D:My Documents.m2deodysseusjueljuel-api2.2.7juel-api-2.2.7.jar;D:My Documents.m2deodysseusjueljuel-impl2.2.7juel-impl-2.2.7.jar;D:My Documents.m2deodysseusjueljuel-spi2.2.7juel-spi-2.2.7.jar;D:My Documents.m2joda-timejoda-time2.9.7joda-time-2.9.7.jar;D:My Documents.m2orgactivitiactiviti-spring6.0.0activiti-spring-6.0.0.jar;D:My Documents.m2orgspringframeworkspring-jdbc4.3.7.RELEASEspring-jdbc-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-tx4.3.7.RELEASEspring-tx-4.3.7.RELEASE.jar;D:My Documents.m2orgspringframeworkspring-orm4.3.7.RELEASEspring-orm-4.3.7.RELEASE.jar;D:My Documents.m2commons-dbcpcommons-dbcp1.4commons-dbcp-1.4.jar;D:My Documents.m2commons-poolcommons-pool1.6commons-pool-1.6.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-jdbc1.5.2.RELEASEspring-boot-starter-jdbc-1.5.2.RELEASE.jar;D:My Documents.m2orgapachetomcattomcat-jdbc8.5.11tomcat-jdbc-8.5.11.jar;D:My Documents.m2orgapachetomcattomcat-juli8.5.11tomcat-juli-8.5.11.jar;D:My Documents.m2comalibabadruid-spring-boot-starter1.1.3druid-spring-boot-starter-1.1.3.jar;D:My Documents.m2orgspringframeworkbootspring-boot-starter-test1.5.2.RELEASEspring-boot-starter-test-1.5.2.RELEASE.jar;D:My Documents.m2orgspringframeworkbootspring-boot-test-autoconfigure1.5.2.RELEASEspring-boot-test-autoconfigure-1.5.2.RELEASE.jar;D:My Documents.m2comjaywayjsonpathjson-path2.2.0json-path-2.2.0.jar;D:My Documents.m2netminidevjson-smart2.2.1json-smart-2.2.1.jar;D:My Documents.m2netminidevaccessors-smart1.1accessors-smart-1.1.jar;D:My Documents.m2orgow2asmasm5.0.3asm-5.0.3.jar;D:My Documents.m2orgassertjassertj-core2.6.0assertj-core-2.6.0.jar;D:My Documents.m2orgmockitomockito-core1.10.19mockito-core-1.10.19.jar;D:My Documents.m2orgobjenesisobjenesis2.1objenesis-2.1.jar;D:My Documents.m2orghamcresthamcrest-core1.3hamcrest-core-1.3.jar;D:My Documents.m2orghamcresthamcrest-library1.3hamcrest-library-1.3.jar;D:My Documents.m2orgskyscreamerjsonassert1.4.0jsonassert-1.4.0.jar;D:My Documents.m2comvaadinexternalgoogleandroid-json.0.20131108.vaadin1android-json-0.0.20131108.vaadin1.jar" com.mobcb.platform.service.activiti.ActivitiServiceApplication
2018-01-26 16:01:40.673  INFO 10036 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@68267da0: startup date [Fri Jan 26 16:01:40 CST 2018]; root of context hierarchy
2018-01-26 16:01:40.855  INFO 10036 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-01-26 16:01:41.018  INFO 10036 --- [           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)

2018-01-26 16:01:41.672  INFO 10036 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8888
2018-01-26 16:01:41.989  INFO 10036 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=activiti, profiles=[dev], label=null, version=null, state=null
2018-01-26 16:01:41.989  INFO 10036 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='file:///F:/mobcb/config-repo/platform-config-ziyuan/application.yml']]]
2018-01-26 16:01:41.993  INFO 10036 --- [           main] c.m.p.s.a.ActivitiServiceApplication     : No active profile set, falling back to default profiles: default
2018-01-26 16:01:42.007  INFO 10036 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2453f95d: startup date [Fri Jan 26 16:01:42 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@68267da0
2018-01-26 16:01:42.845  WARN 10036 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.mobcb.platform.service.activiti]' package. Please check your configuration.
2018-01-26 16:01:43.067  WARN 10036 --- [           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'.
2018-01-26 16:01:43.208  INFO 10036 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=eb2ef493-1607-35ee-a1a9-0cb0e24a5a1b
2018-01-26 16:01:43.226  INFO 10036 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-01-26 16:01:43.285  INFO 10036 --- [           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)
2018-01-26 16:01:43.285  INFO 10036 --- [           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)
2018-01-26 16:01:43.286  INFO 10036 --- [           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)
2018-01-26 16:01:43.287  INFO 10036 --- [           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)
2018-01-26 16:01:43.288  INFO 10036 --- [           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)
2018-01-26 16:01:43.409  INFO 10036 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$29148513] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-01-26 16:01:43.579  INFO 10036 --- [           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)
2018-01-26 16:01:43.596  INFO 10036 --- [           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)
2018-01-26 16:01:43.611  INFO 10036 --- [           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)
2018-01-26 16:01:43.675  INFO 10036 --- [           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)
2018-01-26 16:01:43.696  INFO 10036 --- [           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)
2018-01-26 16:01:44.123  INFO 10036 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2018-01-26 16:01:44.130  INFO 10036 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2018-01-26 16:01:44.131  INFO 10036 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.11
2018-01-26 16:01:44.279  INFO 10036 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-01-26 16:01:44.279  INFO 10036 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2272 ms
2018-01-26 16:01:44.781  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2018-01-26 16:01:44.782  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'statViewServlet' to [/druid#zs#]
2018-01-26 16:01:44.786  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'metricsFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webRequestLoggingFilter' to: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webStatFilter' to urls: [#zs#]
2018-01-26 16:01:44.787  INFO 10036 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'applicationContextIdFilter' to: [#zs#]
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

View Code

 

解决方法:

 原因是数据库的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.DruidD
            
        

评论留言

还没有评论留言,赶紧来抢楼吧~~

吐槽小黑屋()

* 这里是“吐槽小黑屋”,所有人可看,只保留当天信息。

  • Erlo吐槽

    Erlo.vip2020-10-22 00:47:49Hello、欢迎使用吐槽小黑屋,这就是个吐槽的地方。
  • 返回顶部