1.使用redis时,服务器启动后报错,
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Software caused connection abort: socket write error
问题:端口报错
解决方案:查看有关redis端口
结果:redis端口书写错误。
2.redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
Caused by: java.util.NoSuchElementException: Unable to validate object
问题:Redis池不能使用,不能从redis获取所需要的资源
解决方案:查看redis服务器是否工作正常
结果:因为redis服务器没有正常启动。
3.问题:所有的javax包文件报错,所有的jsp文件的第一行标签头部报错,出现小红叉号。
原因:由于tomcat环境的不同,重新对报错的项目进行buildpath,选择现在应用的tomcat环境。
4.org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemCatController': Injection of autowired dependencies failed;
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jt.manage.service.ItemCatService
5. Could not resolve placeholder 'redis.sentinel.masterName' in string value "${redis.sentinel.masterName}"
工具类文件修改后没有打包
6. 程序包com.sun.org.apache.xml.internal.resolver.helpers不存在
对某些类改变后项目,Class文件没有改变。重新编译,再运行
7. Successfully completed request
[http-bio-8091-exec-1][org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Returning cached instance of singleton bean 'sqlSessionFactory'
Nginx没有开启
8. 严重: Servlet.service() for servlet jsp threw exception
javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
$获取对象在“”内不能有空格