fanchaoo / hahu

参照知乎网做的一个简易版问答网站,后台采用Java语言,及Spring,SpringMVC,MyBatis等框架,模版引擎使用FreeMarker。数据库用到MySQL,Redis。
434 stars 204 forks source link

启动不了 #15

Open LegendGGbob opened 3 years ago

LegendGGbob commented 3 years ago

可能关于reids配置的问题,有没有大佬帮帮忙 Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:980) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause

redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool redis.clients.util.Pool.getResource(Pool.java:42) com.fc.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:57) org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:954) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) Root Cause

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set redis.clients.jedis.Protocol.processError(Protocol.java:104) redis.clients.jedis.Protocol.process(Protocol.java:122) redis.clients.jedis.Protocol.read(Protocol.java:191) redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:175) redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2132) redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:67) org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819) org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429) org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360) redis.clients.util.Pool.getResource(Pool.java:40) com.fc.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:57) org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:954) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

LegendGGbob commented 3 years ago

已解决,必须写redis密码

coderACRush commented 3 years ago

已解决,必须写redis密码

你好,七牛云和邮箱怎么配置?