
--------《错误》
黯雅悸动
寒山问曰:“世间有人谤我、欺我、辱我、笑我、轻我、贱我、恶我、骗我,该如何处之乎?”
我抢答曰:“只需忍他、让他、由他、避他、耐他、敬他、不要理他、再待几年,你且看他。”
展开
-
MyEclipse创建web工程,工程名出现红色感叹号
unbound classpath container:'JRE System Library [jre1.6.0_11]' in project '工程名'问题出现的原因:项目的JDK和IDE使用的JDK版本不一致,造成未绑定的状态解决办法:右击工程名-->选择“Build Path”下的Configure Build Path... -->在Java Build Path窗口中原创 2015-12-12 20:37:11 · 1965 阅读 · 0 评论 -
Invalid content was found starting with element 'mvc:exclude-mapping'.
问题?Invalid content was found starting with element 'mvc:exclude-mapping'.这是springmvc中显著的错误,在配置拦截器的时候,会用到不拦截某一些请求如: //过滤全部请求 //除了hello这个请求 //除了hello这个请求 这条语句就会出问题?会报原创 2016-06-08 22:30:14 · 3086 阅读 · 1 评论 -
编程问题集
2017/3/21 记载1.《okhttp返回json数据:com.squareup.okhttp.internal.http.RealResponseBody@2b88614》解决:点击打开链接2.@responsebody表示该方法的返回结果直接写入HTTP response body中,所以springmvc有自动转化jso数据的功能3.r原创 2017-03-21 18:23:28 · 1262 阅读 · 0 评论 -
启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方案
今天打开eclipse看工程,启动 Eclipse 就出现弹出“Failed to load the JNI shared library jvm.dll”的错误原因1:目录下jvm.dll不存在。对策:(1)重新安装jre或者jdk并配置好环境变量。(2)copy一个jvm.dll放在该目录下。原因2:eclipse的版本与jre或者jdk版本不一致对策:要么两者都安原创 2017-04-08 15:38:27 · 1630 阅读 · 0 评论 -
在同一台电脑机器上安装多个版本jdk,修改环境变量路径不生效的问题
一、改变环境变量JAVA_HOME=D:\devSoftware\jdk1.7并没有生效。 在网上找了很多资料才发现: 在安装JDK1.6时(本机先安装jdk1.7再安装的jdk1.8),自动将java.exe、javaw.exe、javaws.exe三个可执行文件复制到了C:\Windows\System32目录,由于这个目录在WINDOWS环境变量中的优先级高于JAVA_HOM原创 2017-04-08 15:41:59 · 1031 阅读 · 1 评论 -
eclipse工程运行正常但是工程有红叉的问题
解决eclipse工程运行正常但是工程有红叉的问题今天eclipse从服务器上D下来一个工程,工程明明编译、运行都没问题,但是工程上却总会出现一个红叉: 首先在eclipse里面显示problems选项卡,找出问题所在:看到如上的错误提示:Java compiler level does not match the version of the ins转载 2017-04-30 19:27:11 · 5591 阅读 · 0 评论 -
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was was STRING at line 1 column 1
解析json字符串出现这个错误:com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1这是报的错误 这是我写的bean类 public class NewsJsonToBean { public原创 2017-05-11 19:25:20 · 14460 阅读 · 0 评论 -
mysql导入数据时 USING BTREE 错误解决办法
mysql导入数据时 USING BTREE 错误解决办法KEY `pkey` (`pkey`) USING BTREE 修改为:KEY `pkey` USING BTREE (`pkey`) 运行一下即可。原创 2017-04-21 12:08:44 · 650 阅读 · 0 评论 -
maven项目中引用兄弟项目出现The import XXX cannot be resolved问题?
maven项目中引用兄弟项目出现The import XXX cannot be resolved问题?解决办法:需要在引用的兄弟项目右键选择Maven项,点击update Project子菜单原创 2017-04-22 23:00:39 · 3758 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile)
出错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project XXX: Compilation failure解决:将编译器的JDK指定为你本地安装的JDK路径即可原创 2017-04-22 23:04:10 · 5436 阅读 · 0 评论 -
关于FastJSON的@JSONField属性,怎么判null空处理,serialzeFeatures属性
问题?关于FastJSON的@JSONField属性,怎么判空处理?描述:当请求对象中的属性,序列化后传到数据库端口,会遇到属性为null的情况,而这个时候数据库进行判空处理会变得麻烦(这里没有用mybatis),仅仅是端口。解决:关于FastJSON的@JSONField中有一个属性serialzeFeatures,这个可以进行判空处理,当为null值时,该属性不进行序列原创 2017-07-20 22:52:27 · 8297 阅读 · 0 评论 -
freemarker中的小数处理,BigDecimal小数保留
普通人:计划失败 -> 沮丧 -> 骂自己一顿 -> 制订新计划 -> 继续失败学霸:计划失败 -> 沮丧 -> 骂自己一顿 -> 深度思考计划为啥失败 -> 改善问题 -> 制订新计划问题:freemarker中的小数处理;BigDecimal小数保留;ftl表达式对小数处理;1.BigDecial小数保留BigDecimal totalPrice原创 2017-09-09 19:20:44 · 11571 阅读 · 1 评论 -
springMvc,get请求一组数据过来接收问题
普通人:计划失败 -> 沮丧 -> 骂自己一顿 -> 制订新计划 -> 继续失败学霸:计划失败 -> 沮丧 -> 骂自己一顿 -> 深度思考计划为啥失败 -> 改善问题 -> 制订新计划springmvc,get请求一组数据过来接收问题;先用字符串String后台接收(格式是数组json字符串):如:String json="[{'name':'huan原创 2017-09-10 19:54:42 · 1182 阅读 · 1 评论 -
Could not find parameter map com.itcast.mapper.userinfMapper.map
问题?org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.itcast.mapper.userin原创 2016-05-08 17:46:13 · 3628 阅读 · 1 评论 -
Error getting nested result map values for 'user_inf'. Cause: java.sql.SQLException: Cannot convert
问题?Error getting nested result map values for 'user_inf'. Cause: java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 8 to TIMESTAMP.错误:org.apache.ibatis.exceptions.Per原创 2016-05-08 17:15:54 · 4845 阅读 · 0 评论 -
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
问题?org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction整合大三大框架的时候,单独测试没问题,在请求action的时候,会出现以下问题:org.springframework.transaction.Canno原创 2015-12-12 21:11:14 · 9592 阅读 · 0 评论 -
web工程复制后改名字后遇到问题,怎么解决
问题?web工程复制后改名字后遇到问题,怎么解决 工程复制后,会出现以下问题:解决办法:改了后,就变成真正的名字了,重启软件。就好了原创 2015-12-13 15:55:01 · 1181 阅读 · 0 评论 -
Hibernate或者ssh三大框架中出现 XXXX is not mapped问题
Hibernate或者ssh三大框架中出现 XXXX is not mapped问题错误异常信息:org.springframework.orm.hibernate3.HibernateQueryException: loginUser is not mapped [from loginUser order by userId]; nested exception is org.hib原创 2015-12-13 20:34:32 · 5212 阅读 · 0 评论 -
MyEclipse has detected that less than 5% of the 22MB of PS Survivor Space (Heap memory) space remain
MyEclipse错误:MyEclipse has detected that less than 5% of the 22MB of PS Survivor Space (Heap memory) space remains. It is strongly recommended that you exit and restart MyEclipse with new virt原创 2015-12-15 15:48:29 · 4011 阅读 · 0 评论 -
用servlet实现文件上传报错java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getPart
综合来看,是你j2ee容器(也许是tomcat)自带的api规范不是3.0的,或者tomcat版本过低,并没实现3.0规范导致。看下tomcat自带lib下的servlert-api.jar 这个包的版本。打开tomcat的lib 目录下,有两个JAR文件: jsp-api.jar servlet-api.jar 。如果没有,那可能是你没有添加进来。解压这两个文件,用记事本分别打开ME原创 2015-12-19 20:37:04 · 3980 阅读 · 0 评论 -
java.lang.IllegalArgumentException: node to traverse cannot be null!
java.lang.IllegalArgumentException: node to traverse cannot be null!解决:HQL语句写错了,好好检查。原创 2015-12-24 18:15:36 · 964 阅读 · 0 评论 -
net.sf.json.JSONException: There is a cycle in the hierarchy!
net.sf.json.JSONException: There is a cycle in the hierarchy!问题:net.sf.json.JSONException: There is a cycle in the hierarchy! at net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStr原创 2016-04-09 19:59:04 · 717 阅读 · 0 评论 -
java解析excel文件出错jxl.read.biff.BiffException: Unable to recognize OLE stream
jxl.read.biff.BiffException: Unable to recognize OLE streamat jxl.read.biff.CompoundFile.(CompoundFile.java:116)at jxl.read.biff.File.(File.java:127)at jxl.Workbook.getWorkbook(Workbook.java:268原创 2016-04-29 17:42:12 · 3439 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default- comp
问题?[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on pr原创 2016-04-18 12:11:11 · 6623 阅读 · 4 评论 -
Cannot return from outside a function or method代码没错
问题?Cannot return from outside a function or method,代码没错,只是会报红杠,很讨厌。原因:具说是MyEclipse10的bug问题如:这样的情况 解决办法1:把选中的那行JavaScript的Build去掉勾选。 解决办法二:将红色箭头处勾选上即可。原创 2016-05-30 16:26:42 · 715 阅读 · 0 评论 -
jfinal 报异常:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor
问题:jfinal 报异常:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptorjfinal 报异常:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptorHTTP ER原创 2016-05-18 08:03:14 · 3496 阅读 · 2 评论 -
错误:No qualifying bean of type [cn.itcast.service.CustomerService] found for dependency: expected at
问题?No qualifying bean of type [cn.itcast.service.CustomerService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@原创 2016-05-07 00:47:12 · 12038 阅读 · 1 评论 -
解决request.getParameterValues无法取combobox多选值问题
解决request.getParameterValues无法取combobox多选值问题取得多选值:var failReason = $("#failReason").combobox('getValues');Ajax传入: $.ajax({ type:'post', url:'controller/realName/updateRe...原创 2019-04-24 17:19:57 · 939 阅读 · 0 评论