03 2020 档案
是什么原因导致了以下错误:javascript中的“string.split不是一个函数”?
摘要:下面显示了以下JavaScript代码: <script type="text/javascript"> $(document).ready(function() { var string = document.location; var string2 = string.split('/'); }
阅读全文
ajax获取后台返回的数据中午乱码是怎么回事
摘要:修改的地方就加上 produces = {"text/html;charset=UTF-8;"}
阅读全文
SSM框架运行报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: No constructor found in com.hgd.ebp.domain.Movie matching
摘要:SSM框架运行报错: SSM框架报这个错并不是说我们在实体类里面没有包含[java.lang.Integer, java.lang.String, …]属性的构造方法, 而是MyBatis希望实体类里面有个默认无参构造方法,所以需要加一个,但是这个已经说明的构造方法也不能少
阅读全文
无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]
摘要:首先先附上报错在这里插入图片描述报错原因也很简单,找不到jstl标签库。试过很多种方法,网上的方法无非是叫你在Tomcat目录下的lib文件夹中加入jstl包和standard.jar百度云连接:链接:https://pan.baidu.com/s/1dbFbn5EZkTJFZoj_0IpY8Q 密
阅读全文
TypeError: $(...).live is not a function
摘要:报错的原因是这个方法在jquery1.7以后就被废除了,1.7以后的版本改用.on()方法之前的用法:.live(events, function) 新方法:.on(eventType, selector, function)例子:之前: $('#myid').live('click', funct
阅读全文
Required MultipartFile parameter 'file' is not present
摘要:在写一个api的接口时,需要调用者上传文件,类型为:MultipartFile。我在使用postman测试时,服务器报错:具体的错误信息为: HTTP Status 400 - Required MultipartFile parameter 'files' is not presenttype S
阅读全文
Caused by: java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
摘要:Caused by: java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.spri
阅读全文
java.lang.NoClassDefFoundError: org/springframework/core/ErrorCoded
摘要:日志内容如下:java.lang.NoClassDefFoundError: org/springframework/core/ErrorCoded at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoad
阅读全文
ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet:
摘要:在照着这里例子学习ssm时,在部署阶段遇到了这个问题“ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet” 结合例子里的
阅读全文
idea运行java项目js中文乱码如何解决
摘要:大家经常遇到乱码问题,我一般习惯性的把编码问题归结为两种: 编码层面的乱码:指的是那些需要修改项目内的代码或配置来解决的乱码问题,比如有的时候从数据库获取的数据是乱码、发送ajax请求时,获取到的数据乱码等,这种都需要进行新增或修改适当代码或配置来解决; 非编码层面的乱码:指的是那些修改项目外在的一
阅读全文
Error:(182, 32) java: 常量字符串过长
摘要:在转换一个JSON转Java对象是 idea 编译不通过 提示:Error:(182, 32) java: 常量字符串过长 File -> Settings -> Build,Execution,Deployment -> Compiler -> Java Compiler , Use Compil
阅读全文
ssh启动报错:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
摘要:ssh项目启动报错: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect 一开始以为是数据库连接的事,后来发现是hibernate在实体对
阅读全文