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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Run As Junit Test 出錯(cuò)

http://img1.sycdn.imooc.com//589d6f97000160bc14070740.jpg


http://img1.sycdn.imooc.com//589d77650001d01f11360223.jpg


大神幫忙看看,哪里錯(cuò)啦???啥問(wèn)題,怎么解決???

正在回答

4 回答

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"?

xmlns="http://www.springframework.org/schema/beans"

xsi:schemaLocation="http://www.springframework.org/schema/beans?

?http://www.springframework.org/schema/beans/spring-beans.xsd?

?http://www.springframework.org/schema/context?

?http://www.springframework.org/schema/context/spring-context.xsd">


<context:property-placeholder location="classpath:jdbc.properties" />

<!-- 2:數(shù)據(jù)庫(kù)連接池 -->

<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">

<!-- 配置連接池屬性 -->

<property name="driverClass" value="${driver}" />

<property name="jdbcUrl" value="${url}" />

<property name="user" value="${name}" />

<property name="password" value="${password}" />

<!-- c3po連接池的私有屬性 -->

<property name="maxPoolSize" value="30" />

<property name="minPoolSize" value="10" />

<!-- 關(guān)閉連接后不自動(dòng)commit -->

<property name="autoCommitOnClose" value="false" />

<!-- 獲取連接超時(shí)時(shí)間 -->

<property name="checkoutTimeout" value="20000" />

<!-- 獲取連接失敗重試次數(shù) -->

<property name="acquireRetryAttempts" value="3" />

</bean>


<!-- 3:配置sqlSessionFactory對(duì)象 -->

<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">

<!-- 注入數(shù)據(jù)庫(kù)連接池 -->

<property name="dataSource" ref="dataSource" />

<!-- 配置myBatis全局配置文件:mybatis-config.xml -->

<property name="configLocation" value="classpath:mybatis-config.xml" />

<!-- 掃描entity包 使用別名 -->

<property name="typeAliasesPackage" value="org.seckil.entity" />

<!-- 掃描sql配置文件:mapper需要的xml文件 -->

<property name="mapperLocations" value="classpath:mapper/*.xml" />

</bean>


<!-- 4:配置掃描dao接口包,動(dòng)態(tài)實(shí)現(xiàn)dao接口,注入到spring容器中 -->

<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">

<!-- 注入sqlSessionFactory -->

<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />

<!-- 給出需要掃描的dao接口包 -->

<property name="basePackage" value="org.seckil.dao" />

</bean>

</beans>


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Nesive

你的配置沒(méi)問(wèn)題。你的錯(cuò)誤信息:classCause:org.apache.ibatis.type.TypeException: Could not resolve type alias 'SuccessKilled'. Cause: java.lang.ClassNotFoundException: Cannot find class: SuccessKilled 你看看你的SuccessKilled 這個(gè)類應(yīng)該沒(méi)有被spring掃描到,
2017-02-14 回復(fù) 有任何疑惑可以回復(fù)我~
#2

四葉草旳眼淚3386375 提問(wèn)者 回復(fù) Nesive

哎。。。完全懵啦跟著弄得啊,看來(lái)基礎(chǔ)不好,我再倒回去學(xué)學(xué)
2017-02-14 回復(fù) 有任何疑惑可以回復(fù)我~
#3

Nesive 回復(fù) 四葉草旳眼淚3386375 提問(wèn)者

加油哦,我前幾天也出現(xiàn)問(wèn)題搞了兩天。 問(wèn)題解決了,你的進(jìn)步就很大。
2017-02-14 回復(fù) 有任何疑惑可以回復(fù)我~

給我看下你的spring-dao.xml

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

四葉草旳眼淚3386375 提問(wèn)者

大哥,你看看,在下面,xml錯(cuò)啦嗎?
2017-02-14 回復(fù) 有任何疑惑可以回復(fù)我~

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\ECODE\seckill\target\classes\mapper\SuccessKilledDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'SuccessKilled'. ?Cause: java.lang.ClassNotFoundException: Cannot find class: SuccessKilled

0 回復(fù) 有任何疑惑可以回復(fù)我~

錯(cuò)誤在第一張圖片的下面,沒(méi)有截屏完整

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

四葉草旳眼淚3386375 提問(wèn)者

哥們,我給你復(fù)制啦,你看看怎么解決,啥情況?????
2017-02-13 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

Run As Junit Test 出錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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