我也遇到了大神們說的問題,我是用window + ecliopse 做的, jdbc.properties 里面 username 不能用這個名字,我這里出現(xiàn)如下錯誤,換個名字就好了。
///////////////////////////////
java.sql.SQLException: Access denied for user 'Administrator'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
///////////////////////////////
java.sql.SQLException: Access denied for user 'Administrator'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
2016-07-30
Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 18; 文檔根元素 "configuration" 必須匹配 DOCTYPE 根 "mapper"。
2016-07-27
我創(chuàng)建seckill表出錯了,syntax error,unexpected TEXT_STRING,expecting CHECK_SYM OR FOREIGN OR PRIMARY_SYM OR UNIQUE_SYM.求大神指點一下
2016-07-25
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>
http://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>
2016-07-24
關于本集中maven依賴的簡化寫法:老師寫了一大群spring依賴,但這里面是可以省略很多不用寫的,因為有些包已經(jīng)把spring做為默認依賴,這里面可以省略的依賴有:spring-core;spring-beans(上面這兩個spring-context會自動依賴);spring-context,spring-jdbc(mybatis-spring會依賴);spring-web(spring-webmvc會依賴);logback-core(logback-classic會依賴).
如此一來,可以省略一半的配置依賴代碼!
如此一來,可以省略一半的配置依賴代碼!
2016-07-23