首页 > 其他分享 >The server encountered an internal error that prevented it from fulfilling this request.

The server encountered an internal error that prevented it from fulfilling this request.

时间:2023-05-23 15:34:45浏览次数:57  
标签:java prevented request encountered ibatis apache org com ###

org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
### The error may exist in com/itheima/mapper/BrandMapper.java (best guess)
### The error may involve com.itheima.mapper.BrandMapper.selectAll
### The error occurred while executing a query
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
	org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
	org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
	org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147)
	org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80)
	org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)
	org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
	jdk.proxy4/jdk.proxy4.$Proxy31.selectAll(Unknown Source)
	com.itheima.service.impl.BrandServiceImpl.selectAll(BrandServiceImpl.java:25)
	com.itheima.web.select.SelectAllServlet.doGet(SelectAllServlet.java:22)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

原因好像是没有重新编译项目

点击project——>build,重新编译一下项目就好了

标签:java,prevented,request,encountered,ibatis,apache,org,com,###
From: https://www.cnblogs.com/yzx-sir/p/17425352.html

相关文章

  • 【JAVA】调用第三方接口发送request请求
    一、通过JDK网络类Java.net.HttpURLConnection通过统一资源定位器(java.net.URL)获取连接器(java.net.URLConnection)。设置请求的参数。发送请求。以输入流的形式获取返回内容。关闭输入流。 1、发送post请求packagecom.Run;importjava.io.*;importjava.net.HttpU......
  • requests: 基本使用、get、post、代理、cookie案例、超级鹰打码api
    1、requests_1_基本使用""".-''-..--._..._.'.-.)|__|......
  • 使用Requests模块进行微博爬虫教程【网络请求分析文档】
    目录写在前面请求热搜获取某个热搜下的内容获取长文本获取图片获取评论第一部分后续部分获取某个用户的微博第一部分后续部分后续部分写在前面该文档是某课程实验需要而整理的,各个接口分析仅凭我个人理解,各个参数以及数据的含义也只是我个人的推测,如有错误的地方,欢迎在评论区或......
  • Python request请求 解析
    importloggingimporthttp.clienthttpclient_logger=logging.getLogger("http.client")defhttpclient_logging_patch(level=logging.DEBUG):"""EnableHTTPConnectiondebugloggingtotheloggingframework"""......
  • servJump extends HttpServlet //request.getRequestDispatcher //response.sendRed
    packagecom.test;importjava.io.IOException;importjava.io.PrintWriter;importjava.util.HashMap;importjava.util.Map;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;impo......
  • uni.request(OBJECT)前端post请求数据json序列化
    一、uni-app前端post请求数据json序列化1.前置须知Content-Type实体头部用于指示资源的MIME(媒体)类型mediatype。在响应中,Content-Type标头告诉客户端实际返回的内容的内容类型。在请求中,客户端告诉服务器实际发送的数据类型。2.uni.request({})官方文档2.1dat......
  • flvjs使用过程中报The play() request was interrupted by a call to pause()的原因和
    原因:从表层来看,它的原因是因为在播放出来视频之前就已经被调用了pause方法停止了。但是造成这个过程的真正原因是什么呢?资源加载不成功可能是你的接口写错了,导致没有资源,虽然这是一个很小的可能,但是千万不要忽视每一个小的点时机不对这个时候就是说可能你接口是对的,只是获取......
  • requests 反爬
    概述本章内容模拟浏览器登录->处理cookie防盗链处理->抓取梨视频数据代理->防止被封ip接入第三方代理cookie登录->得到cookie带着cookie去请求到需要的url#必须把上面的两个操作连起来#我们可以使用session进行请求->session可以认为是一连串的请求,中间c......
  • Python爬虫学习之Requests库
    Requests请求库Requests是⽤Python语⾔编写,基于urllib,采⽤Apache2Licensed开源协议的HTTP库。它⽐urllib更加⽅便,可以节约我们⼤量的⼯作,完全满⾜HTTP测试需求。⼀句话——Python实现的简单易⽤的HTTP库1.了解requests库requests库的介绍requests是一个优雅而简单的Py......
  • 定义Request、Response和Url类
    1、介绍定义Request、Response和Url类分别用于管理http请求、响应和url的数据与方法。这三个类所对应的数据和方法,在渗透测试业务中应用非常广泛,同时存在高度的定制化需求,比如Request的id对象属性、send_time和wait_time对象属性等。而同时,requests模块、mitmporxy模块等所使用......