第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

maven項目無法讀取配置文件

maven項目無法讀取配置文件

遠(yuǎn)飛的小馬 2017-01-05 00:39:10
Spring-mvc<!--?配置文件?--><bean?id="configProperty"class="org.springframework.beans.factory.config.PropertiesFactoryBean"><property?name="locations"><list><value>classpath*:setting.properties</value></list></property></bean><!--?配置信息?--><bean?id="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><property?name="ignoreResourceNotFound"?value="false"?/><property?name="properties"?value="configProperty"?/></bean>Spring-Mybatis<!--?配置數(shù)據(jù)源?--><bean?id="dataSource"?class="org.apache.commons.dbcp2.BasicDataSource"destroy-method="false"><property?name="driverClassName"><value>${db.driver}</value></property><property?name="url"><value>${db.url}</value></property><property?name="username"><value>${db.username}</value></property><property?name="password"><value>${db.password}</value></property><property?name="initialSize"><value>5</value></property><property?name="maxTotal"><value>50</value></property><property?name="maxWaitMillis"><value>60000</value></property><property?name="maxIdle"><value>20</value></property><property?name="connectionProperties"><value>clientEncoding=UTF-8</value></property></bean><!--?創(chuàng)建?sqlSessionFactory?--><bean?id="sqlSessionFactory"?class="org.mybatis.spring.SqlSessionFactoryBean"><property?name="dataSource"?ref="dataSource"?/><property?name="configLocation"?value="classpath:mybatis-config.xml"?/></bean>setting.propertiesdb.driver=com.mysql.jdbc.Driverdb.url=jdbc:mysql://localhost:3306/live?useUnicode=true&characterEncoding=utf-8db.username=rootdb.password=rooteclipse 報錯Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'db.driver' in string value "${db.driver}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'db.driver' in string value "${db.driver}"
查看完整描述

1 回答

  • 1 回答
  • 1 關(guān)注
  • 4526 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號