亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

404 和505 錯誤,http://localhost:8080/seckill/可成功出現index頁面,但http://localhost:8080/seckill/seckill和http://localhost:8080/seckill/seckill/list分別出現404個505錯誤

http://img1.sycdn.imooc.com//581c62400001724f18960932.jpg

### Error querying database. ?Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.

### The error may exist in file [E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\seckill\WEB-INF\classes\mapper\SeckillDao.xml]

### The error may involve org.seckill.dao.SeckillDao.queryAll

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.] with root cause

com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@fff09ff -- timeout at awaitAvailable()

這是什么原因,http://localhost:8080/seckill/可成功出現index頁面,但http://localhost:8080/seckill/seckill和http://localhost:8080/seckill/seckill/list分別出現404個505錯誤

正在回答

3 回答

兄臺,我也報跟你類似的錯誤,請問你是怎么解決的啊

0 回復 有任何疑惑可以回復我~
#1

Echo鑫 提問者

我的是鏈接數據庫端口我弄錯了,你檢查下jdbc配置文件看看
2017-03-02 回復 有任何疑惑可以回復我~

已解決,端口問題

0 回復 有任何疑惑可以回復我~

SeckillDao.xml 看看這個或者mybatis配置文件是否有問題,404是代表頁面沒有找到。505是HTTP Version Not Supported是由于服務器對http1.1協議不支持或者支持不好,看看GET請求后面是否多加了空格。

0 回復 有任何疑惑可以回復我~
#1

Echo鑫 提問者

我這代碼,基本全是按照視頻里打的,并對照了老師的源代碼,沒錯啊,不知道為什么就是出現不來頁面,鏈接不到數據庫。
2016-11-05 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

404 和505 錯誤,http://localhost:8080/seckill/可成功出現index頁面,但http://localhost:8080/seckill/seckill和http://localhost:8080/seckill/seckill/list分別出現404個505錯誤

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號