404 和505 錯(cuò)誤,http://localhost:8080/seckill/可成功出現(xiàn)index頁(yè)面,但http://localhost:8080/seckill/seckill和http://localhost:8080/seckill/seckill/list分別出現(xiàn)404個(gè)505錯(cuò)誤
### 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/可成功出現(xiàn)index頁(yè)面,但http://localhost:8080/seckill/seckill和http://localhost:8080/seckill/seckill/list分別出現(xiàn)404個(gè)505錯(cuò)誤
2017-03-02
兄臺(tái),我也報(bào)跟你類(lèi)似的錯(cuò)誤,請(qǐng)問(wèn)你是怎么解決的啊
2016-11-13
已解決,端口問(wèn)題
2016-11-04
SeckillDao.xml 看看這個(gè)或者mybatis配置文件是否有問(wèn)題,404是代表頁(yè)面沒(méi)有找到。505是HTTP Version Not Supported是由于服務(wù)器對(duì)http1.1協(xié)議不支持或者支持不好,看看GET請(qǐng)求后面是否多加了空格。