
Java异常处理
java开发遇到的异常处理
乔治大哥
脚踏实地,仰望星空。
展开
-
IDEA连接数据库后,不展示某库表
按照以下步骤进行处理即可:原创 2022-05-07 10:30:09 · 958 阅读 · 0 评论 -
springboot使用pagehelper分页失效原因
springboot使用pagehelper分页失效原因原创 2022-05-07 00:28:47 · 2767 阅读 · 0 评论 -
Since Maven 3.8.1 http repositories are blocked.
如果你是下载或者更新新版idea后,出现的该问题,或许是一样的原因。在于idea的最新maven3.8.3,不支持一些包导致的。使用3.6.x的maven包即可,即:原创 2022-04-21 14:11:26 · 19017 阅读 · 0 评论 -
Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.INT
Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.INT实体类 类型为Integer,但是配置xml使用了INT导致。修改为:jdbcType=INTEGER原创 2021-03-21 21:58:44 · 1542 阅读 · 1 评论 -
Maven中 jar包冲突原理与解决办法&依赖传递
Maven中 jar包冲突原理与解决办法&依赖传递管理包依赖是 Maven 核心功能之一,下面通过如何引入 jar 包;如何解析 jar 包依赖;包冲突是如何产生;如何解决包冲突;依赖管理解决什么问题;什么是依赖范围;使用包依赖的最佳实践等 6 个问题来介绍。如何引入 jar 包在代码开发时,如果需要使用第三方 jar 包提供的类库,那么需要在 pom.xml 加入该 jar 包依赖。 例如:使用 zookeeper client <!-- https://mvnreposit转载 2020-05-27 12:36:16 · 1144 阅读 · 0 评论 -
Cannot resolve xxx.5.5
如果挂的vpn看看是否连接成功,看仓库是否有相应包,有删除,重新,即:查看网络,这些基本的没问题,嗯换版本,即更改version即可原创 2020-05-21 16:50:45 · 429 阅读 · 0 评论 -
Cause: java.sql.SQLException: Invalid parameter object type. Expected 'com.jd.sns.biz.api.domain.Plu
java.sql.SQLException: Invalid parameter object type. Expected 'java.util.Map' but found 'java.lang.String'原文:http://hi.baidu.com/ideas/item/1e41172f70ac61876f2cc3691 异常提示:com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurre..原创 2020-05-11 17:14:27 · 1232 阅读 · 0 评论 -
?????nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for pr
?????nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'createtime' in 'class com..domain.Feedback'问题在于你的字段对应问题,如果你的项目也是ssm那么大概率出现在mybati...原创 2020-04-11 22:01:46 · 935 阅读 · 0 评论 -
java异常 The origin server did not find a current representation for the target resource or is not
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.这个问题很常见。而且很不容易意识到!我没记错的话,应该之前记录过,但是额。直接原因就是你的映射,访问路径如@RequestMa...原创 2020-04-11 17:47:41 · 1393 阅读 · 0 评论 -
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ka-crm-adapter-domain: Compilation failure: Compilation failure:........[ER...原创 2020-04-07 22:09:22 · 401 阅读 · 1 评论 -
springcloud 错误: 找不到或无法加载主类
一个springcloud的多module项目。启动web的时候,出现报错。错误: 找不到或无法加载主类解决方案:对无法加在主类的这个项目进行 clean install;...原创 2020-04-03 21:15:34 · 7594 阅读 · 6 评论 -
resource 注解下的name爆红
请这里走!https://georgedage.blog.youkuaiyun.com/article/details/105232430原创 2020-03-31 21:24:57 · 3657 阅读 · 0 评论 -
Cannot resolve bean 'xxx' less... (Ctrl+F1) Inspection info:Checks autowir
Cannot resolve bean 'xxx' less... (Ctrl+F1)Inspection info:Checks autowiring problems in a bean class.嗯,还是开发软件干的比较少!无法解析bean,为什么呢。因为:你这个xxx的类上没有加注解!!!!!然后:结果:ok!!!...原创 2020-03-31 21:23:32 · 13015 阅读 · 4 评论 -
javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exception
javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) org.apache.ca...原创 2020-03-27 23:06:48 · 3068 阅读 · 0 评论 -
Failed to execute goal on project xxx: Could not resolve dependencies for project com
错误描述:Failed to execute goal on project xxx: Could not resolve dependencies for project com.jd.ka:xxx:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.jd.ka:ka-explore-service:ja...原创 2020-03-26 16:13:29 · 46459 阅读 · 10 评论 -
import org.apache.commons.codec.digest.DigestUtils; 未导入
import org.apache.commons.codec.digest.DigestUtils;链接:<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec --><dependency> <groupId>commons-codec</grou...原创 2020-03-24 22:40:54 · 10040 阅读 · 0 评论 -
idea配置连接oracle数据库的pom文件中添加什么?
别吐槽,没用过oracle。<!-- https://mvnrepository.com/artifact/com.oracle/ojdbc6 --> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId&...原创 2020-03-24 21:24:28 · 1430 阅读 · 0 评论 -
idea下org.apache.commons.dbcp.BasicDataSourc找不到
首先记得引包:<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>common...原创 2020-03-24 21:22:57 · 3320 阅读 · 2 评论 -
Dependency 'mysql:mysql-connector-java:5.1.28' not found【解决方案】
问题:我的解决方案:前往maven仓库:搜索mysql-connector-java找一个新的版本,但要和你的系统l里其他的依赖兼容 。比如我选择了5.1.26<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <depe...原创 2020-03-17 12:38:37 · 23765 阅读 · 1 评论 -
Servlet.init() for servlet [SpringMVC] threw exception javax.servlet.ServletException: Servlet.ini
HTTP Status 500 – Internal Server ErrorTypeException ReportMessageServlet.init() for servlet [SpringMVC] threw exceptionDescriptionThe server encountered an unexpected condition that prevente...原创 2020-03-17 12:24:27 · 778 阅读 · 0 评论 -
Cannot resolve file 'applicationContext.xml'【解决方案】
Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466) org.apache.j...原创 2020-03-17 08:26:39 · 5631 阅读 · 4 评论 -
完美解决你使用eclipse编辑jsp、js文件时,经常出现卡死的问题
使用Eclipse编辑jsp、js文件时,经常出现卡死现象,解决方法如下:1、取消验证windows–>perferences–>validation把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator。其实我是把所有的都给关了!2、关闭拼写检查windows–>perferences–&...原创 2020-03-14 10:37:55 · 1184 阅读 · 0 评论 -
eclipse导入项目后,项目上有红叉,但是打开项目并没有发现带有红叉的文件【解决方案】
我起初也是十分的纳闷,这软件也太。。。项目里面的都更改了呀,jdk,jar包,tomcat为什么还是有红叉,而且启动并不成功。运行结果显示是成功了,并且8080,但是访问404!问题解决:1、打开你的项目所在的文件路径,然后在.settings的文件目录下,你会发现如下的文件,然后选择org.eclipse.wst.common.project.facet.core.xml进行修改!...原创 2020-02-24 22:10:24 · 3409 阅读 · 0 评论 -
eclipse开发javaweb项目中The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决方案:第一步:第二步:第三步:第四步:【友情提示】如果显示空白,则代表没有配置tomcat,如何配置,请访问:问题解决:...原创 2020-02-24 17:17:40 · 826 阅读 · 0 评论 -
Sublime Text 的下载巨慢的问题,安装问题,html页面代码生成问题,代码提示问题 全都解决了【最完美的解决方案】
这网速,谁的问题?我都快王者了,还没下好?排除了!!!然后就是使用软件商城下载,按照网上的html代码生成进行的一步步操作。然并软!!!!排除了!!!所以我决定给广大网友一个完美的解决方案:链接:https://pan.baidu.com/s/1mCF8ePWT-REaobYsq9C16Q提取码:7bhz一次性解决所有问题。下载慢,百度...原创 2020-02-23 17:51:48 · 13689 阅读 · 26 评论 -
win10 安装程序错误,the setup files are corrupted.please obtain a new copy of the program
解决方法:该报错的意思是“安装文件损坏.请重新找一份完整的文档安装”一般由于以下原因造成:1、说明安装程序已崩溃,下载时丢失了字节等因素导致,请重新下载。(Think官方网站不要使用迅雷下载,因为网站为单线程下载会出现该问题)。2、文件通过其他机器下载,使用U盘拷贝到Think机器上,可能U盘的问题,导致拷贝的文件受损,可以在Think机器上直接下载安装。3、在安装显卡时提示以...原创 2020-02-23 16:16:44 · 45018 阅读 · 0 评论 -
hosts文件 请检查文件是否在别的程序中打开
解决方案:先把host文件复制到桌面或别的文件夹,编辑好后,复制粘贴覆盖原来的host文件就可以了。原创 2020-02-19 15:47:43 · 5458 阅读 · 0 评论 -
web.xml文件报红,怎么解决???
首先问题分析:从样子上看过去,感觉不应该,没有什么错误呀!因为整体文件是在之前的博客中拷贝过来的,之前的博客,既然代码贴上去,我肯定是做过检测的。那么问题在哪?然后我将代码粘贴到notepad上,问题发现了!但是为什么会发生这样的事情,未知。给我们警示,思考问题,不能认为之前的就是对的。你的些许改动,或许就导致了你这次的低级迷惑!...原创 2020-02-17 20:58:44 · 4163 阅读 · 0 评论 -
Error running : No valid Maven installation found. Either set the home directory in the
Error running 'ssm [clean]': No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.错误就是:你的maven没有...原创 2020-02-17 20:59:40 · 49350 阅读 · 14 评论 -
There is no configured/running web-servers found! Please, run any web-configuration and hit the Refr
There is no configured/running web-servers found! Please, run any web-configuration and hit the Refresh button!解决方案:1、配置你的tomcat2、先把tomcat运行起来运行成功:3、点击4:、即:...原创 2020-02-17 20:59:10 · 4233 阅读 · 0 评论 -
maven install出错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (d
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project news_search: Compilation failure: Compilation failure: [ERROR] /y/ESClientSpring...原创 2020-02-13 17:46:16 · 1471 阅读 · 1 评论 -
项目启动正常,访问网页500怎么办?【思考问题要全面,小问题或许就是问题的关键,小本本记下来!!!】
运行项目,控制台正常,但是访问网址后,出现这样的错误。最初我也是之间看看那第一个错误,org.apache.jasper.JasperException: An exception occurred processing JSP page [/index.jsp] at line [4]然后网上搜索了一阵,发现没什么用?然后就想着,再看看这个错误,再去理解理解果然,事实上,就应该这样做...原创 2020-02-13 16:17:49 · 2207 阅读 · 0 评论 -
com.netflix.discovery.shared.transport.TransportException: Retry limit reached; giving up on complet
com.netflix.discovery.shared.transport.TransportException: Retry limit reached; giving up on completing the request at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execu...原创 2020-02-12 19:52:24 · 5074 阅读 · 0 评论 -
IDEA显示Run Dashboard窗口,Multiple Spring Boot run configurations were detected. Run Dashboard allows to
首先说明一下Run Dashboard是什么?先看字面意思:Run Dashboard : 运行指示板在idea中它的作用是:IDEA 中 Dashboard界面化窗口使用,方便管理多应用我看见网上大多是找Dashboard怎么显示。这里也算做一个补充吧,别以后遇到了,其实我之所以查这个,并写着一篇博客,只是为了晓得它是干什么的补充:如果新建的项目运...原创 2020-02-10 16:58:10 · 33095 阅读 · 0 评论 -
Request method 'GET' not supported解决方式
There was an unexpected error (type=Method Not Allowed, status=405).Request method ‘GET’ not supported解决方案:第一种情况:前台页面的表单在一些情况下没有指定POST方法:Ajax没有指定POST方法:后台方法在一定情况下需要指定POST方法:第二种情况:前端参数类型与后台数据库中的...原创 2020-02-03 21:00:55 · 79116 阅读 · 1 评论 -
npm ERR! code ELIFECYCLE【最好记的解决方案】
'vue-cli-service' �����ڲ����ⲿ���Ҳ���ǿ����еij������������ļ���npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! CRM@2.0.0 dev: `vue-cli-service serve --open`npm ERR! Exit status 1npm ERR! ...原创 2020-01-17 14:28:46 · 21649 阅读 · 1 评论 -
Tomcat debug启动出错Unable to open debugger port (127.0.0.1:62947): java.net.SocketException "socket clo
原创 2020-01-17 10:13:52 · 2907 阅读 · 0 评论 -
Proxy error: Could not proxy request /admin/myResources.do from localhost.jd.com:41000 to http://loc
Proxy error: Could not proxy request /admin/myResources.do from localhost.jd.com:41000 to http://localhost.jd.com:80.See https://nodejs.org/api/errors.html#errors_common_system_errors for more infor...原创 2020-01-06 10:41:25 · 13071 阅读 · 5 评论 -
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdRedisUtils' defined in class path resource [spring/spring-config-redis.xml]: Cannot resolve referen...原创 2020-01-02 09:30:22 · 3521 阅读 · 0 评论 -
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iview-admin@2.0.0 dev: `vue-cli-service serve
解决方案npm uninstall webpack-dev-servernpm install webpack-dev-server@2.9.1npm run dev运行成功原创 2019-12-31 16:10:39 · 24051 阅读 · 8 评论