有報錯:java.lang.IllegalStateException: Failed to load ApplicationContext
原因:(1)Caused by: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]
原因:(1)Caused by: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]
2017-08-18
你們是怎么用老師說的那個快捷鍵的?command+shift+D,windows相對應得是什么鍵,ctrl+shifit+T 好像不是啊!
2017-08-17
<select id="queryByIdWithSeckill" resultMap="SuccessKilled">
把resultMap改成resultType就可以
把resultMap改成resultType就可以
2017-08-15
老師好牛,多謝老師的分享。跟著老師敲代碼,前面單元測試的時候,遇到了MYSQL 中無法登陸錯誤,jdbc.properties 中的username 問題。最后將jdbc.properties中全部添加jdbc.前綴。還遇到一個問題 commons-logging 無法創建問題,最后在gradle 中添加 jcl-over-slf4j的依賴,解決了。
2017-08-14